Chad commited on
Commit
4af0e65
·
1 Parent(s): 6162c5a

nwfbwfbwdwddwwdwddwdwdwdefefdwedwdw

Browse files
Files changed (1) hide show
  1. app.py +6 -5
app.py CHANGED
@@ -48,7 +48,7 @@ def generate_reply(user_input, chat_history):
48
 
49
  chat_history.append({"role": "user", "content": user_input})
50
  chat_history.append({"role": "assistant", "content": reply})
51
- return chat_history, ""
52
 
53
  with gr.Blocks() as interface:
54
  gr.Markdown("## History Chatbot")
@@ -73,10 +73,11 @@ with gr.Blocks() as interface:
73
  ]
74
 
75
  send_button.click(
76
- fn=generate_reply,
77
- inputs=[user_input, state],
78
- outputs=[chatbot, state, user_input]
79
- )
 
80
 
81
 
82
  reset_button = gr.Button("New Conversation")
 
48
 
49
  chat_history.append({"role": "user", "content": user_input})
50
  chat_history.append({"role": "assistant", "content": reply})
51
+ return chat_history, chat_history, ""
52
 
53
  with gr.Blocks() as interface:
54
  gr.Markdown("## History Chatbot")
 
73
  ]
74
 
75
  send_button.click(
76
+ fn=generate_reply,
77
+ inputs=[user_input, state],
78
+ outputs=[chatbot, state, user_input]
79
+ )
80
+
81
 
82
 
83
  reset_button = gr.Button("New Conversation")