txya900619 Sing-hong commited on
Commit
8a2ca70
·
verified ·
1 Parent(s): 3c929a8

網頁title照DEMO.md (#2)

Browse files

- 網頁title照DEMO.md (2df9969c695afedf000694cfbc64d8a39212613e)


Co-authored-by: Sih Sîng-hông <[email protected]>

Files changed (1) hide show
  1. app.py +4 -1
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=(