Fetch the repository succeeded.
"""
@FileName:run_app.py.py
@Author:Huterox
@Description:Go For It
@Time:2024/6/11 11:42
@Copyright:©2018-2024 awesome!
"""
import os
import sys
from base import run_app
import streamlit.web.cli as stcli
def resolve_path(path):
resolved_path = os.path.abspath(os.path.join(os.getcwd(), path))
return resolved_path
def run_app_path():
os.makedirs(run_app,exist_ok=True)
out = f"{run_app}/main.py"
return out
if __name__ == "__main__":
# sys.argv = [
# "streamlit",
# "run",
# resolve_path("main.py"),
# "--global.developmentMode=false",
# ]
sys.argv = [
"streamlit",
"run",
run_app_path(),
"--server.port=8080",
"--global.developmentMode=false",
]
sys.exit(stcli.main())
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。