Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -75,18 +75,33 @@ def goal_setting_agent(goals_text, priorities_text, dependencies_text, total_tim
|
|
| 75 |
interface = gr.Interface(
|
| 76 |
fn=goal_setting_agent,
|
| 77 |
inputs=[
|
| 78 |
-
gr.Textbox(
|
| 79 |
-
|
| 80 |
-
|
| 81 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 82 |
],
|
| 83 |
outputs=[
|
| 84 |
-
gr.Code(label="Schedule (S)", language="json"),
|
| 85 |
gr.Code(label="Dependency Graph (DG)", language="json"),
|
| 86 |
-
gr.Code(label="Action Plan", language="json")
|
| 87 |
],
|
| 88 |
-
title="Goal Setting Agent (Algorithm 4.2)",
|
| 89 |
-
description=
|
|
|
|
|
|
|
|
|
|
| 90 |
)
|
| 91 |
|
| 92 |
if __name__ == "__main__":
|
|
|
|
| 75 |
interface = gr.Interface(
|
| 76 |
fn=goal_setting_agent,
|
| 77 |
inputs=[
|
| 78 |
+
gr.Textbox(
|
| 79 |
+
label="Health Goals (comma-separated)",
|
| 80 |
+
placeholder="Reduce Vata imbalance, Improve digestion (Pitta), Enhance sleep quality, Balance Kapha"
|
| 81 |
+
),
|
| 82 |
+
gr.Textbox(
|
| 83 |
+
label="Priorities (comma-separated, higher = important)",
|
| 84 |
+
placeholder="3, 2, 1, 2 (e.g., higher for severe dosha imbalance)"
|
| 85 |
+
),
|
| 86 |
+
gr.Textbox(
|
| 87 |
+
label="Dependencies (goal1:goal2 format, comma-separated)",
|
| 88 |
+
placeholder="Enhance sleep quality:Reduce Vata imbalance, Improve digestion (Pitta):Balance Kapha"
|
| 89 |
+
),
|
| 90 |
+
gr.Number(
|
| 91 |
+
label="Total Time Available (in days)",
|
| 92 |
+
value=21
|
| 93 |
+
)
|
| 94 |
],
|
| 95 |
outputs=[
|
| 96 |
+
gr.Code(label="Personalized Schedule (S)", language="json"),
|
| 97 |
gr.Code(label="Dependency Graph (DG)", language="json"),
|
| 98 |
+
gr.Code(label="Ayurvedic Action Plan", language="json")
|
| 99 |
],
|
| 100 |
+
title="Ayurvedic Goal Setting Agent (Algorithm 4.2)",
|
| 101 |
+
description=(
|
| 102 |
+
"Generates a personalized healing plan based on dosha imbalance, "
|
| 103 |
+
"priorities, and dependencies. Helps structure lifestyle, diet, and wellness goals."
|
| 104 |
+
)
|
| 105 |
)
|
| 106 |
|
| 107 |
if __name__ == "__main__":
|