PierreBrunelle commited on
Commit
060f00c
·
verified ·
1 Parent(s): ab35989

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +18 -1
app.py CHANGED
@@ -199,6 +199,23 @@ def gradio_interface():
199
  </div>
200
  """)
201
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
202
  task = gr.Textbox(
203
  label="Task Category",
204
  placeholder="e.g., Sentiment Analysis, Text Generation, Summarization",
@@ -273,7 +290,7 @@ def gradio_interface():
273
  scale=1,
274
  min_width=200
275
  )
276
-
277
  with gr.Column(scale=1):
278
  gr.HTML("""
279
  <div style="padding: 15px; background-color: #F3F4F6; border-radius: 8px; margin-bottom: 15px;">
 
199
  </div>
200
  """)
201
 
202
+ # Define output components first
203
+ omn_response = gr.Textbox(
204
+ label="Open-Mistral-Nemo Response",
205
+ elem_classes="output-style"
206
+ )
207
+ ml_response = gr.Textbox(
208
+ label="Mistral-Medium Response",
209
+ elem_classes="output-style"
210
+ )
211
+ large_sentiment = gr.Number(label="Mistral-Medium Sentiment")
212
+ open_sentiment = gr.Number(label="Open-Mistral-Nemo Sentiment")
213
+ large_keywords = gr.Textbox(label="Mistral-Medium Keywords")
214
+ open_keywords = gr.Textbox(label="Open-Mistral-Nemo Keywords")
215
+ large_readability = gr.Number(label="Mistral-Medium Readability")
216
+ open_readability = gr.Number(label="Open-Mistral-Nemo Readability")
217
+
218
+ # Now define input components
219
  task = gr.Textbox(
220
  label="Task Category",
221
  placeholder="e.g., Sentiment Analysis, Text Generation, Summarization",
 
290
  scale=1,
291
  min_width=200
292
  )
293
+
294
  with gr.Column(scale=1):
295
  gr.HTML("""
296
  <div style="padding: 15px; background-color: #F3F4F6; border-radius: 8px; margin-bottom: 15px;">