Spaces:
Paused
Paused
ifyz
commited on
Commit
•
dc58745
1
Parent(s):
6505fea
Update main.py
Browse files使用本地字体,修改Gradio默认从Googleapis调用字体。从而解决用户由于国内网络环境打开首页缓慢的问题。
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):
|