ifyz commited on
Commit
dc58745
1 Parent(s): 6505fea

Update main.py

Browse files

使用本地字体,修改Gradio默认从Googleapis调用字体。从而解决用户由于国内网络环境打开首页缓慢的问题。

Files changed (1) hide show
  1. main.py +1 -1
main.py CHANGED
@@ -26,7 +26,7 @@ crazy_functional = get_crazy_functionals()
26
 
27
  gr.Chatbot.postprocess = format_io
28
 
29
- with gr.Blocks() as demo:
30
  gr.HTML(title_html)
31
  with gr.Row():
32
  with gr.Column(scale=2):
 
26
 
27
  gr.Chatbot.postprocess = format_io
28
 
29
+ with gr.Blocks(theme=gr.themes.Default(font=[ "Arial", "sans-serif","Microsoft YaHei"],font_mono=["Arial", "sans-serif","Microsoft YaHei"])) as demo:
30
  gr.HTML(title_html)
31
  with gr.Row():
32
  with gr.Column(scale=2):