SergeyO7 commited on
Commit
a2bb3de
·
verified ·
1 Parent(s): a1080c8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -8
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()