Sk1306 commited on
Commit
5c4eb0d
·
verified ·
1 Parent(s): 4737945

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +23 -8
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(label="Goals (comma-separated)", placeholder="g1, g2, g3"),
79
- gr.Textbox(label="Priorities (comma-separated, higher = important)", placeholder="3, 2, 1"),
80
- gr.Textbox(label="Dependencies (g1:g2 format, comma-separated)", placeholder="g2:g1"),
81
- gr.Number(label="Total Time Available")
 
 
 
 
 
 
 
 
 
 
 
 
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="Generates schedule, dependency graph, and action plan based on input goals."
 
 
 
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__":