patti-j commited on
Commit
19fbc9e
1 Parent(s): e014655

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -6
app.py CHANGED
@@ -41,15 +41,12 @@ with gr.Blocks(theme=gr.themes.Glass()) as demo:
41
  label="What would you like to talk about?",
42
  type = "text",
43
  )
44
-
45
- message.submit(respond, [message, chatbot], [message, chatbot])
46
-
47
  with gr.Row():
48
  submit = gr.Button(value="Send", variant="secondary").style(full_width=False)
49
  # submit.click(lambda: None, None, chatbot, queue=False)
50
  clear = gr.Button(value="Clear Chat")
51
-
52
-
53
  gr.Examples(
54
  examples=[
55
  "I feel lonely",
@@ -60,6 +57,7 @@ with gr.Blocks(theme=gr.themes.Glass()) as demo:
60
  )
61
 
62
  chatbot = gr.Chatbot()
63
-
 
64
  if __name__ == "__main__":
65
  demo.launch(debug=True)
 
41
  label="What would you like to talk about?",
42
  type = "text",
43
  )
44
+
 
 
45
  with gr.Row():
46
  submit = gr.Button(value="Send", variant="secondary").style(full_width=False)
47
  # submit.click(lambda: None, None, chatbot, queue=False)
48
  clear = gr.Button(value="Clear Chat")
49
+
 
50
  gr.Examples(
51
  examples=[
52
  "I feel lonely",
 
57
  )
58
 
59
  chatbot = gr.Chatbot()
60
+ message.submit(respond, [message, chatbot], [message, chatbot])
61
+
62
  if __name__ == "__main__":
63
  demo.launch(debug=True)