# 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:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![KrzKlima](https://avatars.discourse-cdn.com/v4/letter/k/e9a140/32.png) [@KrzKlima](https://discuss.huggingface.co/u/KrzKlima)\
**Post date:** [May 21, 2025, 2:10pm UTC](https://discuss.huggingface.co/t/streamlit-interface/156175/1 "2025-05-21T14:10:04Z")

</div>

Hello!

It seems that a while back the streamlit interface option was removed from huggingface. There is a docker container with Streamlit, but when I choose it for a new space, it turns out that it contains an older python version than before and, more importantly, the app that I prepared earlier does not run properly. Does not run at all, in fact. Am I doing anything wrong, or is it the huggingface’s fault?

---

<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.

---

<div class="post-metadata">

**Author:** ![mailtoniru-eee](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/mailtoniru-eee/32/50849_2.png) [@mailtoniru-eee](https://discuss.huggingface.co/u/mailtoniru-eee)\
**Post date:** [July 9, 2025, 2:14pm UTC](https://discuss.huggingface.co/t/streamlit-interface/156175/3 "2025-07-09T14:14:29Z")

</div>

Is there any update here? I can see only Docker, Gradio and Static under SDK

 ![image](https://us1.discourse-cdn.com/hellohellohello/original/3X/4/e/4e643d91bbc161e45c7039fd03a0feabb6da95af.png)

---

<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:** [July 9, 2025, 2:17pm UTC](https://discuss.huggingface.co/t/streamlit-interface/156175/4 "2025-07-09T14:17:41Z")

</div>

Not yet anything. Maybe. Try contact HF: [website@huggingface.co](mailto:website@huggingface.co)

---

<div class="post-metadata">

**Author:** ![KrzKlima](https://avatars.discourse-cdn.com/v4/letter/k/e9a140/32.png) [@KrzKlima](https://discuss.huggingface.co/u/KrzKlima)\
**Post date:** [July 9, 2025, 9:54pm UTC](https://discuss.huggingface.co/t/streamlit-interface/156175/5 "2025-07-09T21:54:33Z")

</div>

Nope. I switched to Gradio.

---

<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:** [July 10, 2025, 9:51am UTC](https://discuss.huggingface.co/t/streamlit-interface/156175/6 "2025-07-10T09:51:04Z")

</div>

Seems it was spec. change.😅

> hysts  
> Not a bug. It’s moved under Docker a while back. Looks like the docs need an update, though. Thanks.
> 
> ![0](https://us1.discourse-cdn.com/hellohellohello/original/3X/c/e/ce08a9011f5ce58836e547b53db1d633896323a2.png)

---

<div class="post-metadata">

**Author:** ![mailtoniru-eee](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/mailtoniru-eee/32/50849_2.png) [@mailtoniru-eee](https://discuss.huggingface.co/u/mailtoniru-eee)\
**Post date:** [July 13, 2025, 10:40pm UTC](https://discuss.huggingface.co/t/streamlit-interface/156175/7 "2025-07-13T22:40:00Z")

</div>

Yes. I have deployed it under docker. Initially faced issues. But after updating the docker file it is working fine.
