Merge branch 'patch-1' of https://github.com/ifyz/chatgpt_academic into ifyz-patch-1

This commit is contained in:
Your Name 2023-03-26 19:14:27 +08:00
commit 6ab3672cfe

View File

@ -2,6 +2,8 @@ import os; os.environ['no_proxy'] = '*' # 避免代理网络产生意外污染
import gradio as gr
from predict import predict
from toolbox import format_io, find_free_port
#Gradio的分析功能
gr.analytics_enabled = False
# 建议您复制一个config_private.py放自己的秘密如API和代理网址避免不小心传github被别人看到
try: from config_private import proxies, WEB_PORT
@ -29,7 +31,7 @@ crazy_functional = get_crazy_functionals()
# 处理markdown文本格式的转变
gr.Chatbot.postprocess = format_io
with gr.Blocks() as demo: # 借助gradio框架实现webUI
with gr.Blocks(theme=gr.themes.Default(font=[ "Arial", "sans-serif","Microsoft YaHei"],font_mono=["Arial", "sans-serif","Microsoft YaHei"])) as demo:
gr.HTML(title_html)
with gr.Row():
with gr.Column(scale=2):