Spaces:
Sleeping
Sleeping
網頁title照DEMO.md (#2)
Browse files- 網頁title照DEMO.md (2df9969c695afedf000694cfbc64d8a39212613e)
Co-authored-by: Sih Sîng-hông <[email protected]>
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=(
|