bupa1018 commited on
Commit
7bd6818
·
1 Parent(s): 48d68ea

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -45,7 +45,7 @@ def bot_kadi(chat_history):
45
  response = kadiAPY_ragchain.process_query(user_query)
46
  chat_history[-1] = (user_query, response)
47
 
48
- yield chat_history
49
 
50
 
51
  import gradio as gr
@@ -53,7 +53,7 @@ import gradio as gr
53
  def add_text_to_chatbot(chat_history, user_input):
54
 
55
  chat_history = chat_history + [(user_input, None)]
56
- yield chat_history, ""
57
 
58
 
59
  def main():
 
45
  response = kadiAPY_ragchain.process_query(user_query)
46
  chat_history[-1] = (user_query, response)
47
 
48
+ return chat_history
49
 
50
 
51
  import gradio as gr
 
53
  def add_text_to_chatbot(chat_history, user_input):
54
 
55
  chat_history = chat_history + [(user_input, None)]
56
+ return chat_history, ""
57
 
58
 
59
  def main():