Update src/report_generator.py
Browse files- src/report_generator.py +4 -0
src/report_generator.py
CHANGED
|
@@ -430,6 +430,10 @@ def generate_and_download_report():
|
|
| 430 |
Generate a medical report from the conversation history.
|
| 431 |
Shows a form for entering patient info and then allows downloading the report.
|
| 432 |
"""
|
|
|
|
|
|
|
|
|
|
|
|
|
| 433 |
# Step 1: Collect patient info
|
| 434 |
if st.session_state.report_step == 1:
|
| 435 |
st.text_input("Patient Name", key="patient_name",
|
|
|
|
| 430 |
Generate a medical report from the conversation history.
|
| 431 |
Shows a form for entering patient info and then allows downloading the report.
|
| 432 |
"""
|
| 433 |
+
# Skip report generation if we're in the middle of a conversation
|
| 434 |
+
if st.session_state.get('processing', False):
|
| 435 |
+
return
|
| 436 |
+
|
| 437 |
# Step 1: Collect patient info
|
| 438 |
if st.session_state.report_step == 1:
|
| 439 |
st.text_input("Patient Name", key="patient_name",
|