bztxb commited on
Commit
32043d6
·
verified ·
1 Parent(s): 610f255

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -80,13 +80,13 @@ def predict(text_str):
80
 
81
 
82
  # 5. 构建 Gradio 界面
83
- # 如果你需要对输出进行更个性化渲染,可使用不同的组件(outputs=...)
84
  demo = gr.Interface(
85
  fn=predict,
86
  inputs=gr.Textbox(lines=3, placeholder="请输入待预测文本"),
87
  outputs="text",
88
- title="输入待分类的文本",
89
- description="推理明/清实录的多标签分类"
90
  )
91
 
92
  # 6. 启动服务
 
80
 
81
 
82
  # 5. 构建 Gradio 界面
83
+ # 要更个性化渲染,可使用不同的组件(outputs=...)
84
  demo = gr.Interface(
85
  fn=predict,
86
  inputs=gr.Textbox(lines=3, placeholder="请输入待预测文本"),
87
  outputs="text",
88
+ title="推理明/清实录的多标签分类",
89
+ description="输入待分类的文本"
90
  )
91
 
92
  # 6. 启动服务