arpit13 commited on
Commit
fbc9d9d
·
verified ·
1 Parent(s): 3993369

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +23 -3
app.py CHANGED
@@ -97,13 +97,13 @@ def check_extended_horoscope(horoscope_type, name, dob, tob, lat, lon, tz):
97
 
98
 
99
  # Function to check Horoscope(Kundali)
100
- def check_horoscope(horoscope(K)_type, name, dob, tob, lat, lon, tz):
101
- response = fetch_astrology_data(f"horoscope/{horoscope(K)_type}", dob, tob, lat, lon, tz)
102
  if isinstance(response, str):
103
  return gr.Markdown(response)
104
 
105
  readable_response = f"""
106
- ### {horoscope(K)_type.replace('-', ' ').title()} Analysis for {name}
107
 
108
  **Details:**
109
  """
@@ -164,6 +164,26 @@ with gr.Blocks(theme=gr.themes.Soft()) as demo:
164
  create_button("Yogini Dasha Main", "yogini-dasha-main", check_dasha)
165
  create_button("Yogini Dasha Sub", "yogini-dasha-sub", check_dasha)
166
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
167
  gr.Markdown("## 💫 Horoscope")
168
  with gr.Row():
169
  create_button("Planet Details", "planet-details", check_horoscope)
 
97
 
98
 
99
  # Function to check Horoscope(Kundali)
100
+ def check_horoscope(horoscope_kundali_type, name, dob, tob, lat, lon, tz):
101
+ response = fetch_astrology_data(f"horoscope/{horoscope_kundali_type}", dob, tob, lat, lon, tz)
102
  if isinstance(response, str):
103
  return gr.Markdown(response)
104
 
105
  readable_response = f"""
106
+ ### {horoscope_kundali_type.replace('-', ' ').title()} Analysis for {name}
107
 
108
  **Details:**
109
  """
 
164
  create_button("Yogini Dasha Main", "yogini-dasha-main", check_dasha)
165
  create_button("Yogini Dasha Sub", "yogini-dasha-sub", check_dasha)
166
 
167
+ gr.Markdown("## 🌙 Extended Horoscope")
168
+ with gr.Row():
169
+ create_button("Find Moon Sign", "find-moon-sign", check_extended_horoscope)
170
+ create_button("Find Sun Sign", "find-sun-sign", check_extended_horoscope)
171
+ create_button("Find Ascendant", "find-ascendant", check_extended_horoscope)
172
+ create_button("Current Sade Sati", "current-sade-sati", check_extended_horoscope)
173
+ create_button("Extended Kundli Details", "extended-kundli-details", check_extended_horoscope)
174
+ create_button("Sade Sati Table", "sade-sati-table", check_extended_horoscope)
175
+ create_button("Friendship", "friendship", check_extended_horoscope)
176
+ create_button("Kp Houses", "kp-houses", check_extended_horoscope)
177
+ create_button("Kp Planets", "kp-planets", check_extended_horoscope)
178
+ create_button("Gem Suggestion", "gem-suggestion", check_extended_horoscope)
179
+ create_button("Numero Table", "numero-table", check_extended_horoscope)
180
+ create_button("Rudraksh Suggestion", "rudraksh-suggestion", check_extended_horoscope)
181
+ create_button("Varshapal Details", "varshapal-details", check_extended_horoscope)
182
+ create_button("Varshapal Month Chart", "varshapal-month-chart", check_extended_horoscope)
183
+ create_button("Varshapal Year Chart", "varshapal-year-chart", check_extended_horoscope)
184
+ create_button("Yoga List", "yoga-list", check_extended_horoscope)
185
+
186
+
187
  gr.Markdown("## 💫 Horoscope")
188
  with gr.Row():
189
  create_button("Planet Details", "planet-details", check_horoscope)