patti-j commited on
Commit
918e203
1 Parent(s): b43dcc8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -4
app.py CHANGED
@@ -34,9 +34,8 @@ with gr.Blocks(theme=gr.themes.Soft()) as demo:
34
  chatbot = gr.Chatbot()
35
  message = gr.Textbox(label="What would you like to chat about?")
36
 
37
- with gr.Row():
38
- submit = gr.Button(value="Send")
39
- clear = gr.Button(value="Clear Chat")
40
 
41
  """ gr.Examples(
42
  examples=[
@@ -50,7 +49,7 @@ with gr.Blocks(theme=gr.themes.Soft()) as demo:
50
  def respond(message, chat_history):
51
  bot_message = ["How are you?"]
52
  chat_history.append((message, bot_message))
53
- return "", chat_history
54
 
55
  message.click(respond, [message, chatbot])
56
 
 
34
  chatbot = gr.Chatbot()
35
  message = gr.Textbox(label="What would you like to chat about?")
36
 
37
+ submit = gr.Button(value="Send")
38
+ clear = gr.Button(value="Clear Chat")
 
39
 
40
  """ gr.Examples(
41
  examples=[
 
49
  def respond(message, chat_history):
50
  bot_message = ["How are you?"]
51
  chat_history.append((message, bot_message))
52
+ return chat_history
53
 
54
  message.click(respond, [message, chatbot])
55