Omnibus commited on
Commit
aa9fe5e
·
1 Parent(s): d2b7354

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -2
app.py CHANGED
@@ -453,13 +453,16 @@ examples =[
453
  ]
454
 
455
 
456
- gr.ChatInterface(
457
  fn=run,
458
  chatbot=gr.Chatbot(show_label=False, show_share_button=False, show_copy_button=True, likeable=True, layout="panel"),
459
  title="Mixtral 46.7B Powered <br> Search",
460
  examples=examples,
461
  concurrency_limit=20,
462
- ).launch(show_api=False)
 
 
 
463
 
464
  '''
465
  with gr.Blocks() as app:
 
453
  ]
454
 
455
 
456
+ app = gr.ChatInterface(
457
  fn=run,
458
  chatbot=gr.Chatbot(show_label=False, show_share_button=False, show_copy_button=True, likeable=True, layout="panel"),
459
  title="Mixtral 46.7B Powered <br> Search",
460
  examples=examples,
461
  concurrency_limit=20,
462
+ )
463
+
464
+ if __name__ == "__main__":
465
+ app.launch(show_api=False)
466
 
467
  '''
468
  with gr.Blocks() as app: