Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -62,7 +62,6 @@ with app:
|
|
| 62 |
inp_1= gr.Textbox(label="Type text here.",placeholder="The customer service was satisfactory.")
|
| 63 |
out_2 = gr.Textbox(label="Prediction")
|
| 64 |
|
| 65 |
-
|
| 66 |
gr.Markdown(
|
| 67 |
"""
|
| 68 |
Model Predictions
|
|
@@ -75,8 +74,6 @@ with app:
|
|
| 75 |
classifier = pipeline("text-classification", model=model_id_1)
|
| 76 |
btn.click(fn=predict, inputs=inp_1, outputs=out_2)
|
| 77 |
|
| 78 |
-
|
| 79 |
-
|
| 80 |
with gr.Row():
|
| 81 |
model2_input = gr.Textbox(label="Model 2")
|
| 82 |
with gr.Row():
|
|
@@ -84,4 +81,4 @@ with app:
|
|
| 84 |
classifier = pipeline("text-classification", model=model_id_2)
|
| 85 |
btn.click(fn=predict, inputs=inp_1, outputs=out_2)
|
| 86 |
|
| 87 |
-
app.launch()
|
|
|
|
| 62 |
inp_1= gr.Textbox(label="Type text here.",placeholder="The customer service was satisfactory.")
|
| 63 |
out_2 = gr.Textbox(label="Prediction")
|
| 64 |
|
|
|
|
| 65 |
gr.Markdown(
|
| 66 |
"""
|
| 67 |
Model Predictions
|
|
|
|
| 74 |
classifier = pipeline("text-classification", model=model_id_1)
|
| 75 |
btn.click(fn=predict, inputs=inp_1, outputs=out_2)
|
| 76 |
|
|
|
|
|
|
|
| 77 |
with gr.Row():
|
| 78 |
model2_input = gr.Textbox(label="Model 2")
|
| 79 |
with gr.Row():
|
|
|
|
| 81 |
classifier = pipeline("text-classification", model=model_id_2)
|
| 82 |
btn.click(fn=predict, inputs=inp_1, outputs=out_2)
|
| 83 |
|
| 84 |
+
app.launch()
|