Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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)
|