Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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 |
-
|
| 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 |
-
|
| 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():
|