acecalisto3 commited on
Commit
87ebe64
·
verified ·
1 Parent(s): a6330bd

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -12
app.py CHANGED
@@ -359,22 +359,18 @@ examples = [
359
  ["What are the key differences between SQL and NoSQL databases, and when should I use each type of database?", None, None, None, None, None, ],
360
  ]
361
 
362
-
363
  gr.ChatInterface(
364
  fn=run,
365
  title="""Fragmixt: Autonomous Agents With Agents...Surf With a Purpose!""",
366
  examples=examples,
367
  concurrency_limit=20,
368
- with gr.Blocks() as ifacea:
369
  gr.HTML("""TEST""")
370
- with gr.Blocks() as iface:
371
- chatbot=gr.Chatbot(show_label=False, show_share_button=False, show_copy_button=True, likeable=True, layout="panel"),
372
- chatbot=gr.Chatbot()
373
- msg = gr.Textbox()
374
- with gr.Row():
375
- submit_b = gr.Button()
376
- clear = gr.ClearButton([msg, chatbot])
377
- submit_b.click(run, [msg,chatbot],[msg,chatbot])
378
- msg.submit(run, [msg, chatbot], [msg, chatbot])
379
- iface.launch()
380
  )
 
359
  ["What are the key differences between SQL and NoSQL databases, and when should I use each type of database?", None, None, None, None, None, ],
360
  ]
361
 
 
362
  gr.ChatInterface(
363
  fn=run,
364
  title="""Fragmixt: Autonomous Agents With Agents...Surf With a Purpose!""",
365
  examples=examples,
366
  concurrency_limit=20,
367
+ with gr.Blocks() as iface:
368
  gr.HTML("""TEST""")
369
+ chatbot = gr.Chatbot(show_label=False, show_share_button=False, show_copy_button=True, likeable=True, layout="panel")
370
+ msg = gr.Textbox()
371
+ with gr.Row():
372
+ submit_b = gr.Button()
373
+ clear = gr.ClearButton([msg, chatbot])
374
+ submit_b.click(run, [msg, chatbot], [msg, chatbot])
375
+ msg.submit(run, [msg, chatbot], [msg, chatbot])
 
 
 
376
  )