beyond commited on
Commit
f3e816f
β€’
1 Parent(s): bea2a5f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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("""