krrishkh12 commited on
Commit
686ce10
·
verified ·
1 Parent(s): c6acbfb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -2
app.py CHANGED
@@ -121,13 +121,19 @@ def get_date_panchang(date: str = None, data_language: str = "EN") -> str:
121
  if not data or not isinstance(data, dict):
122
  return "Empty or unexpected response."
123
 
124
- return json.dumps({
125
  "date": data.get("date"),
 
126
  "Sunrise": data.get("Sunrise"),
127
  "Sunset": data.get("Sunset"),
128
  "Tithi": data.get("Tithi"),
 
 
 
129
  "Festivals": data.get("festivals"),
130
- })
 
 
131
 
132
 
133
  except Exception as e:
 
121
  if not data or not isinstance(data, dict):
122
  return "Empty or unexpected response."
123
 
124
+ summary = {
125
  "date": data.get("date"),
126
+ "location": data.get("location"),
127
  "Sunrise": data.get("Sunrise"),
128
  "Sunset": data.get("Sunset"),
129
  "Tithi": data.get("Tithi"),
130
+ "Nakshatra": data.get("Nakshatra"),
131
+ "Yoga": data.get("Yoga"),
132
+ "Karana": data.get("Karana"),
133
  "Festivals": data.get("festivals"),
134
+ }
135
+ return json.dumps(summary, ensure_ascii=False)
136
+
137
 
138
 
139
  except Exception as e: