Added config.toml file again.

This commit is contained in:
ZeroCool940711 2022-09-26 06:52:54 -07:00
parent b06199ebb6
commit 7bd036a279
3 changed files with 54 additions and 7 deletions

49
.streamlit/config.toml Normal file
View File

@ -0,0 +1,49 @@
[global]
disableWatchdogWarning = false
showWarningOnDirectExecution = true
dataFrameSerialization = "arrow"
[logger]
level = "info"
messageFormat = "%(asctime)s %(message)s"
[client]
caching = true
displayEnabled = true
showErrorDetails = true
[runner]
magicEnabled = true
installTracer = false
fixMatplotlib = true
postScriptGC = true
fastReruns = false
[server]
folderWatchBlacklist = []
fileWatcherType = "auto"
cookieSecret = ""
headless = false
runOnSave = false
port = 8501
baseUrlPath = ""
enableCORS = true
enableXsrfProtection = true
maxUploadSize = 200
maxMessageSize = 200
enableWebsocketCompression = false
[browser]
serverAddress = "localhost"
gatherUsageStats = false
serverPort = 8501
[mapbox]
token = ""
[deprecation]
showfileUploaderEncoding = true
showPyplotGlobalUse = true
[theme]
base = "dark"

View File

@ -1,4 +1,4 @@
import os
import os, subprocess
import yaml
print (os.getcwd)
@ -20,9 +20,7 @@ try:
except:
pass
#try:
#subprocess.run(['python', '-m', 'streamlit', "run" ,os.path.join("..","scripts/webui_streamlit.py"), "--theme.base dark"], stdout=subprocess.DEVNULL)
#except FileExistsError:
#subprocess.run(['python', '-m', 'streamlit', "run" ,"scripts/webui_streamlit.py", "--theme.base dark"], stdout=subprocess.DEVNULL)
import scripts.webui_streamlit
try:
subprocess.run(['python', '-m', 'streamlit', "run" ,os.path.join("..","scripts/webui_streamlit.py"), "--theme.base dark"], stdout=subprocess.DEVNULL)
except FileExistsError:
subprocess.run(['python', '-m', 'streamlit', "run" ,"scripts/webui_streamlit.py", "--theme.base dark"], stdout=subprocess.DEVNULL)

0
scripts/__init__.py Normal file
View File