Spaces:
Sleeping
Sleeping
bluestpanda
commited on
Commit
·
8d5dbab
1
Parent(s):
d314477
Add additional Streamlit configuration for Hugging Face file upload fix
Browse files- Added maxMessageSize configuration
- Disabled file watcher (fileWatcherType = none)
- Disabled browser usage stats gathering
- Updated Dockerfile ENTRYPOINT with new config options
- This should help resolve the file upload backend issue on HF Spaces
- .streamlit/config.toml +5 -0
- Dockerfile +1 -1
.streamlit/config.toml
CHANGED
|
@@ -1,3 +1,8 @@
|
|
| 1 |
[server]
|
| 2 |
maxUploadSize = 1024 # 1 GB in MB
|
| 3 |
enableXsrfProtection = false # Disable XSRF protection for Hugging Face Spaces
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
[server]
|
| 2 |
maxUploadSize = 1024 # 1 GB in MB
|
| 3 |
enableXsrfProtection = false # Disable XSRF protection for Hugging Face Spaces
|
| 4 |
+
maxMessageSize = 1024 # 1 GB in MB
|
| 5 |
+
fileWatcherType = "none" # Disable file watcher
|
| 6 |
+
|
| 7 |
+
[browser]
|
| 8 |
+
gatherUsageStats = false
|
Dockerfile
CHANGED
|
@@ -19,4 +19,4 @@ EXPOSE 8501
|
|
| 19 |
|
| 20 |
HEALTHCHECK CMD curl --fail http://localhost:8501/_stcore/health
|
| 21 |
|
| 22 |
-
ENTRYPOINT ["streamlit", "run", "src/streamlit_app.py", "--server.port=8501", "--server.address=0.0.0.0", "--server.maxUploadSize=1024", "--server.enableXsrfProtection=false"]
|
|
|
|
| 19 |
|
| 20 |
HEALTHCHECK CMD curl --fail http://localhost:8501/_stcore/health
|
| 21 |
|
| 22 |
+
ENTRYPOINT ["streamlit", "run", "src/streamlit_app.py", "--server.port=8501", "--server.address=0.0.0.0", "--server.maxUploadSize=1024", "--server.maxMessageSize=1024", "--server.enableXsrfProtection=false", "--browser.gatherUsageStats=false"]
|