Update app.py
Browse files
app.py
CHANGED
|
@@ -50,12 +50,12 @@ def create_conversation(query: str, chat_history: list) -> tuple:
|
|
| 50 |
|
| 51 |
result = qa_chain({'question': query, 'chat_history': chat_history})
|
| 52 |
chat_history.append((query, result['answer']))
|
| 53 |
-
return chat_history
|
| 54 |
|
| 55 |
|
| 56 |
except Exception as e:
|
| 57 |
chat_history.append((query, e))
|
| 58 |
-
return chat_history
|
| 59 |
|
| 60 |
# build gradio ui
|
| 61 |
with gr.Blocks() as test:
|
|
|
|
| 50 |
|
| 51 |
result = qa_chain({'question': query, 'chat_history': chat_history})
|
| 52 |
chat_history.append((query, result['answer']))
|
| 53 |
+
return '', chat_history
|
| 54 |
|
| 55 |
|
| 56 |
except Exception as e:
|
| 57 |
chat_history.append((query, e))
|
| 58 |
+
return '', chat_history
|
| 59 |
|
| 60 |
# build gradio ui
|
| 61 |
with gr.Blocks() as test:
|