CK42 commited on
Commit
06b445f
1 Parent(s): 01631c2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -4
app.py CHANGED
@@ -68,7 +68,7 @@ with app:
68
  """
69
  # Compare Sentiment Analysis Models
70
 
71
- Type two models id you want to compare or check examples below.
72
  """)
73
  with gr.Row():
74
  model1_input = gr.Textbox(label="Model 1")
@@ -79,17 +79,22 @@ with app:
79
  out = gr.Textbox(label="Prediction")
80
  btn = gr.Button("Run")
81
  btn.click(fn=predict, inputs=inp, outputs=out)
82
-
 
 
 
 
 
 
 
83
  with gr.Row():
84
  app_button = gr.Button("Compare models")
85
  with gr.Row():
86
  with gr.Column():
87
  model1_name = gr.Markdown()
88
- #model1_video_output = gr.Video()
89
  model1_score_output = gr.Textbox(label="Sentiment")
90
  with gr.Column():
91
  model2_name = gr.Markdown()
92
- #model2_video_output = gr.Video()
93
  model2_score_output = gr.Textbox(label="Sentiment")
94
 
95
  app_button.click(load_agent, inputs=[model1_input, model2_input], outputs=[model1_name, model1_score_output, model2_name, model2_score_output])
 
68
  """
69
  # Compare Sentiment Analysis Models
70
 
71
+ Type text to predict sentiment.
72
  """)
73
  with gr.Row():
74
  model1_input = gr.Textbox(label="Model 1")
 
79
  out = gr.Textbox(label="Prediction")
80
  btn = gr.Button("Run")
81
  btn.click(fn=predict, inputs=inp, outputs=out)
82
+
83
+ gr.Markdown(
84
+ """
85
+ Type two models id you want to compare or check examples below.
86
+ """)
87
+ with gr.Row():
88
+ model1_input = gr.Textbox(label="Model 1")
89
+ model2_input = gr.Textbox(label="Model 2")
90
  with gr.Row():
91
  app_button = gr.Button("Compare models")
92
  with gr.Row():
93
  with gr.Column():
94
  model1_name = gr.Markdown()
 
95
  model1_score_output = gr.Textbox(label="Sentiment")
96
  with gr.Column():
97
  model2_name = gr.Markdown()
 
98
  model2_score_output = gr.Textbox(label="Sentiment")
99
 
100
  app_button.click(load_agent, inputs=[model1_input, model2_input], outputs=[model1_name, model1_score_output, model2_name, model2_score_output])