Spaces:
Sleeping
Sleeping
Ajey95
commited on
Commit
·
bb036c7
1
Parent(s):
830ce1c
Fix: chat_history addition
Browse files
app.py
CHANGED
@@ -521,7 +521,7 @@ def chat():
|
|
521 |
uploaded_files = session.get('uploaded_files', None)
|
522 |
|
523 |
# Process the query through the main orchestrator
|
524 |
-
result = pharma_ai.process_query(query, viva_state=viva_state, uploaded_files=uploaded_files,
|
525 |
# If the query was successful, update the history
|
526 |
if result.get('success'):
|
527 |
# Add the user's query and the AI's message to the history
|
|
|
521 |
uploaded_files = session.get('uploaded_files', None)
|
522 |
|
523 |
# Process the query through the main orchestrator
|
524 |
+
result = pharma_ai.process_query(query, viva_state=viva_state, uploaded_files=uploaded_files,chat_history=chat_history)
|
525 |
# If the query was successful, update the history
|
526 |
if result.get('success'):
|
527 |
# Add the user's query and the AI's message to the history
|