Preetham025 commited on
Commit
b6fb353
·
verified ·
1 Parent(s): 182bfc2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -33,7 +33,7 @@ def chat_bot(user_input, history):
33
 
34
  # Gradio Chat Interface
35
  with gr.Blocks() as app:
36
- gr.Markdown("<h1 style='text-align: center;'>💬Chatbot</h1>")
37
 
38
  chatbot = gr.Chatbot()
39
  msg = gr.Textbox(placeholder="Type your message here...", label="Your Message")
@@ -41,7 +41,7 @@ with gr.Blocks() as app:
41
 
42
  # Auto-update conversation
43
  msg.submit(chat_bot, inputs=[msg, chatbot], outputs=[chatbot])
44
- clear.click(lambda: [], None, chatbot, queue=False) # Clear the chat history
45
 
46
  # Launch app in Hugging Face Spaces
47
  app.launch(share=True)
 
33
 
34
  # Gradio Chat Interface
35
  with gr.Blocks() as app:
36
+ gr.Markdown("<h1 style='text-align: center;'>💬 Open-Source Chatbot</h1>")
37
 
38
  chatbot = gr.Chatbot()
39
  msg = gr.Textbox(placeholder="Type your message here...", label="Your Message")
 
41
 
42
  # Auto-update conversation
43
  msg.submit(chat_bot, inputs=[msg, chatbot], outputs=[chatbot])
44
+ clear.click(lambda: [], None, chatbot, queue=False)
45
 
46
  # Launch app in Hugging Face Spaces
47
  app.launch(share=True)