Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -66,22 +66,28 @@ with app:
|
|
66 |
Model Predictions
|
67 |
""")
|
68 |
|
69 |
-
|
70 |
-
|
|
|
|
|
|
|
71 |
with gr.Row():
|
72 |
-
btn1 = gr.Button("
|
73 |
with gr.Row():
|
74 |
-
out_1 = gr.Textbox(label="Prediction")
|
75 |
|
76 |
classifier = pipeline("text-classification", model=model_id_1)
|
77 |
btn1.click(fn=predict, inputs=inp_1, outputs=out_1)
|
78 |
|
79 |
-
|
80 |
-
|
|
|
|
|
|
|
81 |
with gr.Row():
|
82 |
-
btn2 = gr.Button("
|
83 |
with gr.Row():
|
84 |
-
out_2 = gr.Textbox(label="Prediction")
|
85 |
classifier = pipeline("text-classification", model=model_id_2)
|
86 |
btn2.click(fn=predict, inputs=inp_1, outputs=out_2)
|
87 |
|
|
|
66 |
Model Predictions
|
67 |
""")
|
68 |
|
69 |
+
gr.Markdown(
|
70 |
+
"""
|
71 |
+
Model 1 = juliensimon/distilbert-amazon-shoe-reviews
|
72 |
+
""")
|
73 |
+
|
74 |
with gr.Row():
|
75 |
+
btn1 = gr.Button("Predict for Model 1")
|
76 |
with gr.Row():
|
77 |
+
out_1 = gr.Textbox(label="Prediction for Model 1")
|
78 |
|
79 |
classifier = pipeline("text-classification", model=model_id_1)
|
80 |
btn1.click(fn=predict, inputs=inp_1, outputs=out_1)
|
81 |
|
82 |
+
gr.Markdown(
|
83 |
+
"""
|
84 |
+
Model 2 = juliensimon/distilbert-amazon-shoe-reviews
|
85 |
+
""")
|
86 |
+
|
87 |
with gr.Row():
|
88 |
+
btn2 = gr.Button("Predict for Model 2")
|
89 |
with gr.Row():
|
90 |
+
out_2 = gr.Textbox(label="Prediction for Model 2")
|
91 |
classifier = pipeline("text-classification", model=model_id_2)
|
92 |
btn2.click(fn=predict, inputs=inp_1, outputs=out_2)
|
93 |
|