# Streamlit interface

**URL:** <https://discuss.huggingface.co/t/streamlit-interface/156175>\
**Category:** Beginners\
**Created:** [May 21, 2025, 2:10pm UTC](https://discuss.huggingface.co/t/streamlit-interface/156175 "2025-05-21T14:10:03Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![John6666](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/john6666/32/27664_2.png) [@John6666](https://discuss.huggingface.co/u/John6666)\
**Post date:** [May 21, 2025, 2:44pm UTC](https://discuss.huggingface.co/t/streamlit-interface/156175/2 "2025-05-21T14:44:21Z")

</div>

It should work as described in the documentation, and there are no issues reported regarding the documentation. It may just be a bug. @meganariley

> **[Streamlit Spaces](https://huggingface.co/docs/hub/spaces-sdks-streamlit)**
>
> We’re on a journey to advance and democratize artificial intelligence through open source and open science.

> <https://github.com/streamlit/streamlit/issues/11325>
>
> \### Checklist
> 
> \- \[x\] I have searched the \[existing issues\](https://github.com/st…reamlit/streamlit/issues) for similar issues.
> \- \[x\] I added a very descriptive title to this issue.
> \- \[x\] I have provided sufficient information below to help reproduce this issue.
> 
> \### Summary
> 
> \*\*Subject: Application Not Starting - "The main module file does not exist" Despite File Presence\*\*
> 
> Hello,
> 
> I'm experiencing a critical issue with my Streamlit Cloud application that fails to start properly.
> 
> \*\*Problem Description:\*\*
> \- Application URL: \[your-streamlit-app-URL\]
> \- Error message: "The main module file does not exist: /mount/src/mja-poc-oc-p9/app.py"
> \- The app.py file definitely exists at the root of my GitHub repository and is correctly configured
> \- I've verified the project structure, all necessary files are present
> \- I've attempted multiple restarts/redeployments without success
> 
> \*\*Technical Details:\*\*
> \- GitHub Repository: \[your-repo-URL\]
> \- Project structure: app.py is present at the root, with models/ and utils/ folders correctly configured
> \- Logs show that Streamlit cannot find the app.py file although it's visible in GitHub
> \- I'm using Python 3.x with TensorFlow/Keras to load an ML model from Hugging Face
> 
> \*\*What I've Already Tried:\*\*
> \- Restarting the application from the dashboard
> \- Forcing redeployment via minor commits
> \- Checking all configuration parameters
> \- Using optimized code to load the model with TFSMLayer
> 
> \*\*Suspicions:\*\*
> There seems to be a synchronization issue between GitHub and Streamlit Cloud, or a caching problem preventing Streamlit from finding my app.py file.
> 
> Could you please help me resolve this issue so my application can start properly?
> FYI : My app is working well locally in my VM Linux
> Thank you in advance,
> \[Your name\]
> 
> \### Reproducible Code Example
> 
> \`\`\`Python
> 
> \`\`\`
> 
> \### Steps To Reproduce
> 
> \_No response\_
> 
> \### Expected Behavior
> 
> \_No response\_
> 
> \### Current Behavior
> 
> \_No response\_
> 
> \### Is this a regression?
> 
> \- \[\] Yes, this used to work in a previous version.
> 
> \### Debug info
> 
> \- Streamlit version:
> \- Python version:
> \- Operating System:
> \- Browser:
> 
> 
> \### Additional Information
> 
> \_No response\_

> <https://github.com/huggingface/hub-docs/issues/1363>
>
> \*\*Bug description.\*\*
> The streamlit iframe embedding in the \[Embed Streamlit Spa…ces on other webpages\](https://huggingface.co/docs/hub/spaces-sdks-streamlit#embed-streamlit-spaces-on-other-webpages) section points to a not maintained space. The displayed iframe keeps displaying streamlits \`Please wait ...\` message.
> 
> \*\*Describe the expected behaviour\*\*
> Should just display a working streamlit space.
> 
> \*\*Additional context\*\*
> I will open a PR to fix this.

---

_[View the full topic](https://discuss.huggingface.co/t/streamlit-interface/156175)._
