bupa1018 commited on
Commit
369be0e
·
1 Parent(s): 54aec66

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -40,12 +40,12 @@ initialize()
40
 
41
 
42
 
43
- def bot_kadi(history):
44
- user_query = history[-1][0]
45
  response = kadiAPY_ragchain.process_query(user_query)
46
- history[-1] = (user_query, response)
47
 
48
- yield history
49
 
50
 
51
  import gradio as gr
 
40
 
41
 
42
 
43
+ def bot_kadi(chat_history):
44
+ user_query = chat_history[-1][0]
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