Spaces:
Running
on
Zero
Running
on
Zero
網頁title照DEMO.md
#2
by
Sing-hong
- opened
app.py
CHANGED
@@ -49,9 +49,12 @@ def when_model_selected(model_id: str):
|
|
49 |
value=dialect_drop_down_choices[0][1],
|
50 |
)
|
51 |
|
|
|
|
|
|
|
52 |
|
53 |
demo = gr.Blocks(
|
54 |
-
title=
|
55 |
css="@import url(https://tauhu.tw/tauhu-oo.css);",
|
56 |
theme=gr.themes.Default(
|
57 |
font=(
|
|
|
49 |
value=dialect_drop_down_choices[0][1],
|
50 |
)
|
51 |
|
52 |
+
def get_title():
|
53 |
+
with open("DEMO.md") as tong:
|
54 |
+
return tong.readline().strip('# ')
|
55 |
|
56 |
demo = gr.Blocks(
|
57 |
+
title=get_title(),
|
58 |
css="@import url(https://tauhu.tw/tauhu-oo.css);",
|
59 |
theme=gr.themes.Default(
|
60 |
font=(
|