Peter Michael Gits Claude commited on
Commit ·
bfa1948
1
Parent(s): f23aff9
fix: Force Streamlit to use port 7860 for HuggingFace Spaces
Browse files- Add .streamlit/config.toml to override default port 8501
- Set port = 7860 explicitly for HF Spaces compatibility
- Add headless = true and disable usage stats for container deployment
- This ensures VoiceCal is accessible on the correct HF Spaces port
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
- .streamlit/config.toml +9 -0
- Dockerfile +2 -2
.streamlit/config.toml
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[server]
|
| 2 |
+
port = 7860
|
| 3 |
+
address = "0.0.0.0"
|
| 4 |
+
headless = true
|
| 5 |
+
enableCORS = false
|
| 6 |
+
enableXsrfProtection = false
|
| 7 |
+
|
| 8 |
+
[browser]
|
| 9 |
+
gatherUsageStats = false
|
Dockerfile
CHANGED
|
@@ -34,5 +34,5 @@ EXPOSE 7860
|
|
| 34 |
ENV GRADIO_SERVER_NAME="0.0.0.0" \
|
| 35 |
GRADIO_SERVER_PORT=7860
|
| 36 |
|
| 37 |
-
# Run simplified Streamlit app with direct STT connection
|
| 38 |
-
CMD ["streamlit", "run", "streamlit_websocket_app.py", "--server.port", "7860", "--server.address", "0.0.0.0"]
|
|
|
|
| 34 |
ENV GRADIO_SERVER_NAME="0.0.0.0" \
|
| 35 |
GRADIO_SERVER_PORT=7860
|
| 36 |
|
| 37 |
+
# Run simplified Streamlit app with direct STT connection on HF port 7860
|
| 38 |
+
CMD ["streamlit", "run", "streamlit_websocket_app.py", "--server.port", "7860", "--server.address", "0.0.0.0", "--server.headless", "true"]
|