Spaces:
Running
Running
Asish Karthikeya Gogineni commited on
Commit ·
c440323
1
Parent(s): 733ecfe
fix: Configure Streamlit for Hugging Face file uploads
Browse files- Disable CORS and XSRF protection (causes 403 on HF Spaces)
- Set max upload size to 500MB
- Configure headless mode for cloud deployment
- Set address to 0.0.0.0 for proper binding
- .streamlit/config.toml +12 -0
.streamlit/config.toml
CHANGED
|
@@ -1,3 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
[theme]
|
| 2 |
base="dark"
|
| 3 |
primaryColor="#38BDF8"
|
|
|
|
| 1 |
+
[server]
|
| 2 |
+
# Enable CORS for Hugging Face Spaces
|
| 3 |
+
enableCORS = false
|
| 4 |
+
enableXsrfProtection = false
|
| 5 |
+
maxUploadSize = 500
|
| 6 |
+
headless = true
|
| 7 |
+
address = "0.0.0.0"
|
| 8 |
+
port = 7860
|
| 9 |
+
|
| 10 |
+
[browser]
|
| 11 |
+
gatherUsageStats = false
|
| 12 |
+
|
| 13 |
[theme]
|
| 14 |
base="dark"
|
| 15 |
primaryColor="#38BDF8"
|