Update src/report_generator.py
Browse files- src/report_generator.py +2 -3
src/report_generator.py
CHANGED
@@ -16,7 +16,6 @@ import requests
|
|
16 |
|
17 |
from model import orchestrator_chat
|
18 |
from utils import format_conversation_history
|
19 |
-
from session_state import get_full_history
|
20 |
|
21 |
|
22 |
# Function to fetch current date and time from an API
|
@@ -515,8 +514,8 @@ def generate_and_download_report():
|
|
515 |
elif st.session_state.report_step == 2:
|
516 |
with st.spinner("Generating report..."):
|
517 |
try:
|
518 |
-
# Get full conversation history from
|
519 |
-
full_history =
|
520 |
|
521 |
# Format the conversation history for the report
|
522 |
formatted_conversation = format_conversation_history(
|
|
|
16 |
|
17 |
from model import orchestrator_chat
|
18 |
from utils import format_conversation_history
|
|
|
19 |
|
20 |
|
21 |
# Function to fetch current date and time from an API
|
|
|
514 |
elif st.session_state.report_step == 2:
|
515 |
with st.spinner("Generating report..."):
|
516 |
try:
|
517 |
+
# Get full conversation history from local session state
|
518 |
+
full_history = st.session_state.get('history', [])
|
519 |
|
520 |
# Format the conversation history for the report
|
521 |
formatted_conversation = format_conversation_history(
|