johann22 commited on
Commit
243dedb
1 Parent(s): 83fcabb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -3
app.py CHANGED
@@ -478,7 +478,7 @@ examples=[["What are the biggest news stories today?", None, None, None, None, N
478
  ["What are some unique features of Rust that make it stand out compared to other systems programming languages like C++?", None, None, None, None, None,],
479
  ]
480
 
481
-
482
  gr.ChatInterface(
483
  fn=run,
484
  chatbot=gr.Chatbot(show_label=False, show_share_button=False, show_copy_button=True, likeable=True, layout="panel"),
@@ -495,10 +495,13 @@ with gr.Blocks() as iface:
495
  #chatbot=gr.Chatbot(show_label=False, show_share_button=False, show_copy_button=True, likeable=True, layout="panel"),
496
  chatbot=gr.Chatbot()
497
  msg = gr.Textbox()
498
- clear = gr.ClearButton([msg, chatbot])
 
 
 
499
  msg.submit(run, [msg, chatbot], [msg, chatbot])
500
  iface.launch()
501
-
502
  gr.ChatInterface(
503
  fn=run,
504
  chatbot=gr.Chatbot(show_label=False, show_share_button=False, show_copy_button=True, likeable=True, layout="panel"),
 
478
  ["What are some unique features of Rust that make it stand out compared to other systems programming languages like C++?", None, None, None, None, None,],
479
  ]
480
 
481
+ '''
482
  gr.ChatInterface(
483
  fn=run,
484
  chatbot=gr.Chatbot(show_label=False, show_share_button=False, show_copy_button=True, likeable=True, layout="panel"),
 
495
  #chatbot=gr.Chatbot(show_label=False, show_share_button=False, show_copy_button=True, likeable=True, layout="panel"),
496
  chatbot=gr.Chatbot()
497
  msg = gr.Textbox()
498
+ with gr.Row():
499
+ submit_b = gr.Button()
500
+ clear = gr.ClearButton([msg, chatbot])
501
+ submit_b.click(run, [msg,chatbot],[msg,chatbot])
502
  msg.submit(run, [msg, chatbot], [msg, chatbot])
503
  iface.launch()
504
+ '''
505
  gr.ChatInterface(
506
  fn=run,
507
  chatbot=gr.Chatbot(show_label=False, show_share_button=False, show_copy_button=True, likeable=True, layout="panel"),