devngho commited on
Commit
2bde448
β€’
1 Parent(s): e276d6e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -16,7 +16,7 @@ def evaluate_model(input_text):
16
  with gr.Blocks() as demo:
17
  input_text = gr.Textbox(label="Input Text", lines=10)
18
  submit_button = gr.Button("Evaluate")
19
- output_scores = [gr.Number(f'Score by {name}', show_label=True) for name in models.keys()]
20
 
21
  # Action to perform on button click
22
  submit_button.click(evaluate_model, inputs=input_text, outputs=output_scores)
 
16
  with gr.Blocks() as demo:
17
  input_text = gr.Textbox(label="Input Text", lines=10)
18
  submit_button = gr.Button("Evaluate")
19
+ output_scores = [gr.Number(label=f'Score by {name}', show_label=True) for name in models.keys()]
20
 
21
  # Action to perform on button click
22
  submit_button.click(evaluate_model, inputs=input_text, outputs=output_scores)