Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -40,12 +40,12 @@ initialize()
|
|
40 |
|
41 |
|
42 |
|
43 |
-
def bot_kadi(
|
44 |
-
user_query =
|
45 |
response = kadiAPY_ragchain.process_query(user_query)
|
46 |
-
|
47 |
|
48 |
-
yield
|
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
|