Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -80,13 +80,13 @@ def predict(text_str):
|
|
| 80 |
|
| 81 |
|
| 82 |
# 5. 构建 Gradio 界面
|
| 83 |
-
#
|
| 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. 启动服务
|