Nándorfi Vince commited on
Commit
023e08d
·
1 Parent(s): 3385e0e

streamlit fix added

Browse files
Files changed (1) hide show
  1. .streamlit/config.toml +13 -0
.streamlit/config.toml ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [server]
2
+ # Disable file-watcher to silence transformers/torchvision noise on startup.
3
+ # Streamlit watches ~150 image_processor modules that import torchvision,
4
+ # which we don't install — produces a flood of harmless tracebacks.
5
+ fileWatcherType = "none"
6
+
7
+ # Disable XSRF + CORS so st.file_uploader works behind the HF Space iframe proxy.
8
+ # The proxy's cross-origin headers trip XSRF protection and block the upload POST.
9
+ enableXsrfProtection = false
10
+ enableCORS = false
11
+
12
+ # 200 MB upload limit (Streamlit default, explicit for clarity).
13
+ maxUploadSize = 200