Spaces:
Build error
Build error
Update app.py
Browse files
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)
|
| 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)
|