Spaces:
Runtime error
Runtime error
load version
Browse files
app.py
CHANGED
@@ -1,8 +1,10 @@
|
|
1 |
import os; os.environ['no_proxy'] = '*' # 避免代理网络产生意外污染
|
2 |
|
3 |
def main():
|
|
|
|
|
4 |
import gradio as gr
|
5 |
-
if gr.__version__ not in ['3.28.3','3.32.
|
6 |
from request_llm.bridge_all import predict
|
7 |
from toolbox import format_io, find_free_port, on_file_uploaded, on_report_generated, get_conf, ArgsGeneralWrapper, DummyWith
|
8 |
# 建议您复制一个config_private.py放自己的秘密, 如API和代理网址, 避免不小心传github被别人看到
|
|
|
1 |
import os; os.environ['no_proxy'] = '*' # 避免代理网络产生意外污染
|
2 |
|
3 |
def main():
|
4 |
+
import subprocess, sys
|
5 |
+
subprocess.check_call([sys.executable, '-m', 'pip', 'install', '-r', 'requirements.txt'])
|
6 |
import gradio as gr
|
7 |
+
if gr.__version__ not in ['3.28.3','3.32.3']: assert False, "请用 pip install -r requirements.txt 安装依赖"
|
8 |
from request_llm.bridge_all import predict
|
9 |
from toolbox import format_io, find_free_port, on_file_uploaded, on_report_generated, get_conf, ArgsGeneralWrapper, DummyWith
|
10 |
# 建议您复制一个config_private.py放自己的秘密, 如API和代理网址, 避免不小心传github被别人看到
|