Turkeyengineer commited on
Commit
4124ff0
·
verified ·
1 Parent(s): dc80fb1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -8,8 +8,8 @@ demo = gr.Interface(
8
  inputs=gr.Textbox(lines=2, placeholder="輸入一段中文..."),
9
  outputs="text",
10
  title="中文斷詞模擬器",
11
- description="這是一個簡易的中文斷詞工具,未來將整合 CKIP 模型。"
12
- # 移除 api_name,使用 Gradio 預設 endpoint
13
  )
14
 
15
- demo.launch(api_name="run_predict")
 
8
  inputs=gr.Textbox(lines=2, placeholder="輸入一段中文..."),
9
  outputs="text",
10
  title="中文斷詞模擬器",
11
+ description="這是一個簡易的中文斷詞工具,未來將整合 CKIP 模型。",
12
+ api_name="run_predict" # 設在這裡
13
  )
14
 
15
+ demo.launch()