Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -159,7 +159,7 @@ def save_results_to_pdf(test_results, filename):
|
|
| 159 |
except Exception as e:
|
| 160 |
return f"Error saving PDF: {str(e)}", None
|
| 161 |
|
| 162 |
-
#
|
| 163 |
def build_health_card(profile_image, test_results, summary, patient_name="", patient_age="", patient_gender="", patient_id="", pdf_filepath=""):
|
| 164 |
from datetime import datetime
|
| 165 |
current_date = datetime.now().strftime("%B %d, %Y")
|
|
|
|
| 159 |
except Exception as e:
|
| 160 |
return f"Error saving PDF: {str(e)}", None
|
| 161 |
|
| 162 |
+
# Function to generate the health card layout
|
| 163 |
def build_health_card(profile_image, test_results, summary, patient_name="", patient_age="", patient_gender="", patient_id="", pdf_filepath=""):
|
| 164 |
from datetime import datetime
|
| 165 |
current_date = datetime.now().strftime("%B %d, %Y")
|