Omnibus commited on
Commit
4108552
·
1 Parent(s): cd1c5d9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +12 -12
app.py CHANGED
@@ -184,22 +184,22 @@ examples =[
184
  "what are todays breaking news stories?",
185
  "find the most popular model that I can use to generate an image by providing a text prompt",
186
  "return the top 10 models that I can use to identify objects in images",
187
- "which models have the most likes from each category?"
188
  ]
189
  additional_inputs=[
190
  gr.File(),
191
  ]
192
-
193
- app = gr.ChatInterface(
194
- fn=summarize,
195
- chatbot=gr.Chatbot(show_label=False, show_share_button=False, show_copy_button=True, likeable=True, layout="panel"),
196
- title="<center>Mixtral 8x7B TLDR</center>",
197
- description="<center>Summarize Lengthy data with<br>Mixtral 8x7B",
198
- additional_inputs=additional_inputs,
199
- examples=examples,
200
- concurrency_limit=20,
201
- )
202
-
203
  '''
204
  with gr.Blocks() as app:
205
  with gr.Row():
 
184
  "what are todays breaking news stories?",
185
  "find the most popular model that I can use to generate an image by providing a text prompt",
186
  "return the top 10 models that I can use to identify objects in images",
187
+ "which models have the most likes from each category?",
188
  ]
189
  additional_inputs=[
190
  gr.File(),
191
  ]
192
+ with gr.Blocks as app():
193
+ with gr.Row():
194
+ gr.ChatInterface(
195
+ fn=summarize,
196
+ chatbot=gr.Chatbot(show_label=False, show_share_button=False, show_copy_button=True, likeable=True, layout="panel"),
197
+ title="<center>Mixtral 8x7B TLDR</center>",
198
+ description="<center>Summarize Lengthy data with<br>Mixtral 8x7B",
199
+ examples=examples,
200
+ concurrency_limit=20,
201
+ )
202
+ gr.File()
203
  '''
204
  with gr.Blocks() as app:
205
  with gr.Row():