remove limitation for now

This commit is contained in:
505030475 2023-05-27 22:25:50 +08:00
parent 1ee471ff57
commit 3cfbdce9f2

View File

@ -2,7 +2,8 @@ import os; os.environ['no_proxy'] = '*' # 避免代理网络产生意外污染
def main(): def main():
import gradio as gr import gradio as gr
assert gr.__version__.startswith("3.32.1"), "Please run `pip uninstall gradio` and `pip install -r requirements.txt --upgrade` to install a stable gradio fork." # assert gr.__version__.startswith("3.32.1") or gr.__version__.startswith("3.28.3"), \
# "Please run `pip uninstall gradio` and `pip install -r requirements.txt --upgrade` to install a stable gradio fork."
from request_llm.bridge_all import predict from request_llm.bridge_all import predict
from toolbox import format_io, find_free_port, on_file_uploaded, on_report_generated, get_conf, ArgsGeneralWrapper, DummyWith from toolbox import format_io, find_free_port, on_file_uploaded, on_report_generated, get_conf, ArgsGeneralWrapper, DummyWith
# 建议您复制一个config_private.py放自己的秘密, 如API和代理网址, 避免不小心传github被别人看到 # 建议您复制一个config_private.py放自己的秘密, 如API和代理网址, 避免不小心传github被别人看到