Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -50,12 +50,14 @@ def chat_with_alfred(user_input, history=None):
|
|
| 50 |
return history, history
|
| 51 |
|
| 52 |
if __name__ == "__main__":
|
| 53 |
-
with gr.Blocks() as demo:
|
| 54 |
-
chatbot = gr.Chatbot()
|
| 55 |
-
msg = gr.Textbox(placeholder="Type your message here...")
|
| 56 |
-
clear = gr.Button("Clear")
|
| 57 |
-
|
| 58 |
-
msg.submit(chat_with_alfred, [msg, chatbot], [chatbot, chatbot])
|
| 59 |
-
clear.click(lambda: [], None, chatbot)
|
| 60 |
|
| 61 |
-
demo.launch()
|
|
|
|
|
|
|
|
|
| 50 |
return history, history
|
| 51 |
|
| 52 |
if __name__ == "__main__":
|
| 53 |
+
# with gr.Blocks() as demo:
|
| 54 |
+
# chatbot = gr.Chatbot()
|
| 55 |
+
# msg = gr.Textbox(placeholder="Type your message here...")
|
| 56 |
+
# clear = gr.Button("Clear")
|
| 57 |
+
#
|
| 58 |
+
# msg.submit(chat_with_alfred, [msg, chatbot], [chatbot, chatbot])
|
| 59 |
+
# clear.click(lambda: [], None, chatbot)
|
| 60 |
|
| 61 |
+
# demo.launch()
|
| 62 |
+
|
| 63 |
+
GradioUI(alfred).launch()
|