Commit ·
ace6c7a
1
Parent(s): 8f6524a
commit
Browse files- README.md +3 -3
- app.py +3 -3
- test_plot.py +3 -3
README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
| 1 |
---
|
| 2 |
title: Lisdexamfetamine Split Dose Modeller
|
| 3 |
-
emoji:
|
| 4 |
colorFrom: blue
|
| 5 |
colorTo: purple
|
| 6 |
sdk: gradio
|
|
@@ -10,7 +10,7 @@ pinned: false
|
|
| 10 |
short_description: Model split-dose protocols for lisdexamfetamine/Vyvanse
|
| 11 |
---
|
| 12 |
|
| 13 |
-
#
|
| 14 |
|
| 15 |
An interactive pharmacokinetic modeling tool for visualizing split-dosing protocols of **lisdexamfetamine** (Vyvanse®).
|
| 16 |
|
|
@@ -34,7 +34,7 @@ This tool is designed for:
|
|
| 34 |
|
| 35 |
## Important Disclaimers
|
| 36 |
|
| 37 |
-
|
| 38 |
|
| 39 |
- **NOT for clinical decision-making**: This tool should not replace professional medical advice
|
| 40 |
- **Consult your healthcare provider**: Always discuss medication changes with your doctor or psychiatrist
|
|
|
|
| 1 |
---
|
| 2 |
title: Lisdexamfetamine Split Dose Modeller
|
| 3 |
+
emoji: pill
|
| 4 |
colorFrom: blue
|
| 5 |
colorTo: purple
|
| 6 |
sdk: gradio
|
|
|
|
| 10 |
short_description: Model split-dose protocols for lisdexamfetamine/Vyvanse
|
| 11 |
---
|
| 12 |
|
| 13 |
+
# Lisdexamfetamine Split-Dose Modeller
|
| 14 |
|
| 15 |
An interactive pharmacokinetic modeling tool for visualizing split-dosing protocols of **lisdexamfetamine** (Vyvanse®).
|
| 16 |
|
|
|
|
| 34 |
|
| 35 |
## Important Disclaimers
|
| 36 |
|
| 37 |
+
WARNING: **This tool is intended as a patient education resource only**
|
| 38 |
|
| 39 |
- **NOT for clinical decision-making**: This tool should not replace professional medical advice
|
| 40 |
- **Consult your healthcare provider**: Always discuss medication changes with your doctor or psychiatrist
|
app.py
CHANGED
|
@@ -183,11 +183,11 @@ def manual_protocol(total_dose, num_doses, interval1, interval2, interval3,
|
|
| 183 |
# Create Gradio interface
|
| 184 |
with gr.Blocks(title="Lisdexamfetamine Split-Dose Modeller", theme=gr.themes.Soft()) as app:
|
| 185 |
gr.Markdown("""
|
| 186 |
-
#
|
| 187 |
|
| 188 |
Model the effects of different lisdexamfetamine (Vyvanse®) split-dosing protocols and visualize predicted blood concentration curves.
|
| 189 |
|
| 190 |
-
**
|
| 191 |
Always consult with your medical provider before making any changes to your medication regimen.
|
| 192 |
""")
|
| 193 |
|
|
@@ -284,7 +284,7 @@ with gr.Blocks(title="Lisdexamfetamine Split-Dose Modeller", theme=gr.themes.Sof
|
|
| 284 |
|
| 285 |
### Important Disclaimers
|
| 286 |
|
| 287 |
-
|
| 288 |
|
| 289 |
- **NOT for clinical decision-making**: This tool should not replace professional medical advice
|
| 290 |
- **Consult your healthcare provider**: Always discuss medication changes with your doctor or psychiatrist
|
|
|
|
| 183 |
# Create Gradio interface
|
| 184 |
with gr.Blocks(title="Lisdexamfetamine Split-Dose Modeller", theme=gr.themes.Soft()) as app:
|
| 185 |
gr.Markdown("""
|
| 186 |
+
# Lisdexamfetamine Split-Dose Modeller
|
| 187 |
|
| 188 |
Model the effects of different lisdexamfetamine (Vyvanse®) split-dosing protocols and visualize predicted blood concentration curves.
|
| 189 |
|
| 190 |
+
**WARNING - IMPORTANT DISCLAIMER:** This tool is intended as a **patient education tool only** and is **NOT for clinical decision-making**.
|
| 191 |
Always consult with your medical provider before making any changes to your medication regimen.
|
| 192 |
""")
|
| 193 |
|
|
|
|
| 284 |
|
| 285 |
### Important Disclaimers
|
| 286 |
|
| 287 |
+
WARNING: **This tool is intended as a patient education resource only**
|
| 288 |
|
| 289 |
- **NOT for clinical decision-making**: This tool should not replace professional medical advice
|
| 290 |
- **Consult your healthcare provider**: Always discuss medication changes with your doctor or psychiatrist
|
test_plot.py
CHANGED
|
@@ -19,6 +19,6 @@ fig = plot_concentration_curve(time, concentration, start_time_str="07:00")
|
|
| 19 |
|
| 20 |
# Save to file for inspection
|
| 21 |
fig.savefig('/tmp/test_plot.png', dpi=100, bbox_inches='tight')
|
| 22 |
-
print("
|
| 23 |
-
print(f"
|
| 24 |
-
print(f"
|
|
|
|
| 19 |
|
| 20 |
# Save to file for inspection
|
| 21 |
fig.savefig('/tmp/test_plot.png', dpi=100, bbox_inches='tight')
|
| 22 |
+
print("Plot created successfully!")
|
| 23 |
+
print(f"Saved to /tmp/test_plot.png")
|
| 24 |
+
print(f"Time labels should show: 07:00, 10:00 (+3), 13:00 (+6), etc.")
|