Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -39,8 +39,9 @@ with gr.Blocks() as demo:
|
|
| 39 |
|
| 40 |
|
| 41 |
def respond(message, chat_history):
|
| 42 |
-
|
| 43 |
-
|
|
|
|
| 44 |
time.sleep(2)
|
| 45 |
return "", chat_history
|
| 46 |
|
|
|
|
| 39 |
|
| 40 |
|
| 41 |
def respond(message, chat_history):
|
| 42 |
+
query = message
|
| 43 |
+
answer, docs = test_rag(query_pipeline, query)
|
| 44 |
+
chat_history.append((message, answer))
|
| 45 |
time.sleep(2)
|
| 46 |
return "", chat_history
|
| 47 |
|