Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -16,7 +16,6 @@ app = gr.Blocks()
|
|
| 16 |
def load_agent(model_id_1, model_id_2):
|
| 17 |
"""
|
| 18 |
This function load the agent's results
|
| 19 |
-
:return: video_path
|
| 20 |
"""
|
| 21 |
# Load the metrics
|
| 22 |
metadata_1 = get_metadata(model_id_1)
|
|
@@ -76,8 +75,8 @@ with app:
|
|
| 76 |
model2_input = gr.Textbox(label="Model 2")
|
| 77 |
|
| 78 |
with gr.Row():
|
| 79 |
-
inp = gr.Textbox(placeholder="The customer service was satisfactory.")
|
| 80 |
-
out = gr.Textbox()
|
| 81 |
btn = gr.Button("Run")
|
| 82 |
btn.click(fn=predict, inputs=inp, outputs=out)
|
| 83 |
|
|
|
|
| 16 |
def load_agent(model_id_1, model_id_2):
|
| 17 |
"""
|
| 18 |
This function load the agent's results
|
|
|
|
| 19 |
"""
|
| 20 |
# Load the metrics
|
| 21 |
metadata_1 = get_metadata(model_id_1)
|
|
|
|
| 75 |
model2_input = gr.Textbox(label="Model 2")
|
| 76 |
|
| 77 |
with gr.Row():
|
| 78 |
+
inp = gr.Textbox(label="Type text here.",placeholder="The customer service was satisfactory.")
|
| 79 |
+
out = gr.Textbox(label="Prediction")
|
| 80 |
btn = gr.Button("Run")
|
| 81 |
btn.click(fn=predict, inputs=inp, outputs=out)
|
| 82 |
|