Spaces:
Sleeping
Sleeping
Update src/streamlit_app.py
Browse files- src/streamlit_app.py +1 -0
src/streamlit_app.py
CHANGED
|
@@ -596,6 +596,7 @@ if st.session_state.execute_batch_analysis and 'json_data_for_batch' in st.sessi
|
|
| 596 |
"analysis_result": response,
|
| 597 |
"context": retrieved_ctx
|
| 598 |
}
|
|
|
|
| 599 |
csv_string = pd.json_normalize(item)
|
| 600 |
csv_string = csv_string.to_csv(header=True, index=False, encoding='utf-8')
|
| 601 |
with results_container:
|
|
|
|
| 596 |
"analysis_result": response,
|
| 597 |
"context": retrieved_ctx
|
| 598 |
}
|
| 599 |
+
st.session_state.batch_results.append(item)
|
| 600 |
csv_string = pd.json_normalize(item)
|
| 601 |
csv_string = csv_string.to_csv(header=True, index=False, encoding='utf-8')
|
| 602 |
with results_container:
|