Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -52,8 +52,8 @@ with gr.Blocks() as demo:
|
|
52 |
label2 = gr.Textbox(lines=1, label='预测结果 🎃')
|
53 |
score2 = gr.Textbox(lines=1, label='模型概率')
|
54 |
|
55 |
-
button1.click(predict_en, inputs=[t1], outputs=[label1,score1])
|
56 |
-
button2.click(predict_zh, inputs=[t2], outputs=[label2,score2])
|
57 |
|
58 |
# Page Count
|
59 |
gr.Markdown("""
|
|
|
52 |
label2 = gr.Textbox(lines=1, label='预测结果 🎃')
|
53 |
score2 = gr.Textbox(lines=1, label='模型概率')
|
54 |
|
55 |
+
button1.click(predict_en, inputs=[t1], outputs=[label1,score1], api_name='predict_en')
|
56 |
+
button2.click(predict_zh, inputs=[t2], outputs=[label2,score2], api_name='predict_zh')
|
57 |
|
58 |
# Page Count
|
59 |
gr.Markdown("""
|