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