CK42 commited on
Commit
8a3503b
1 Parent(s): d3aaf9a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +14 -8
app.py CHANGED
@@ -66,22 +66,28 @@ with app:
66
  Model Predictions
67
  """)
68
 
69
- # with gr.Row():
70
- # model1_input = gr.Textbox(label="Model 1")
 
 
 
71
  with gr.Row():
72
- btn1 = gr.Button("Prediction for Model 1")
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
- # with gr.Row():
80
- # model2_input = gr.Textbox(label="Model 2")
 
 
 
81
  with gr.Row():
82
- btn2 = gr.Button("Prediction for Model 2")
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