Omnibus commited on
Commit
c87a550
·
verified ·
1 Parent(s): 7edef00

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -3
app.py CHANGED
@@ -376,15 +376,20 @@ examples =[
376
  ]
377
  with gr.Blocks() as app:
378
  btn=gr.Button()
379
- app.load()
380
- gr.ChatInterface(
381
  fn=run,
382
  chatbot=gr.Chatbot(show_label=False, show_share_button=True, show_copy_button=True, likeable=True, layout="panel", height="800px"),
383
  title="Mixtral 46.7B Powered <br> Search",
384
 
385
  examples=examples,
386
  concurrency_limit=20,
387
- ).launch()
 
 
 
 
 
388
 
389
  '''
390
  with gr.Blocks() as app:
 
376
  ]
377
  with gr.Blocks() as app:
378
  btn=gr.Button()
379
+
380
+ iface = gr.ChatInterface(
381
  fn=run,
382
  chatbot=gr.Chatbot(show_label=False, show_share_button=True, show_copy_button=True, likeable=True, layout="panel", height="800px"),
383
  title="Mixtral 46.7B Powered <br> Search",
384
 
385
  examples=examples,
386
  concurrency_limit=20,
387
+ )
388
+
389
+ iface = iface.create_interface(app)
390
+ iface.launch()
391
+
392
+
393
 
394
  '''
395
  with gr.Blocks() as app: