bupa1018 commited on
Commit
54aec66
·
1 Parent(s): 97abd69

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -5
app.py CHANGED
@@ -51,11 +51,10 @@ def bot_kadi(history):
51
  import gradio as gr
52
 
53
  def add_text_to_chatbot(chat_history, user_input):
54
- if user_input:
55
- chat_history.append((user_input, None))
56
- response = "This is a placeholder response. Replace this with your AI logic."
57
- chat_history.append((None, response))
58
- return chat_history, ""
59
 
60
  def main():
61
  with gr.Blocks() as demo:
 
51
  import gradio as gr
52
 
53
  def add_text_to_chatbot(chat_history, user_input):
54
+
55
+ chat_history = chat_history + [(user_input, None)]
56
+ yield history, ""
57
+
 
58
 
59
  def main():
60
  with gr.Blocks() as demo: