Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -23,6 +23,7 @@ planet_symbols = {
|
|
23 |
'Mars': '♂', 'Jupiter': '♃', 'Saturn': '♄'
|
24 |
}
|
25 |
|
|
|
26 |
def parse_query(query):
|
27 |
"""Parse the query into date, time, and location."""
|
28 |
parts = query.split()
|
@@ -81,7 +82,7 @@ def PLadder_ZSizes(utc_dt, lat, lon):
|
|
81 |
return {"error": "Date out of range (1900–2050)."}
|
82 |
|
83 |
# Initialize Swiss Ephemeris
|
84 |
-
swe.set_ephe_path(
|
85 |
|
86 |
# Map planet names to Swiss Ephemeris constants
|
87 |
planet_objects = {
|
|
|
23 |
'Mars': '♂', 'Jupiter': '♃', 'Saturn': '♄'
|
24 |
}
|
25 |
|
26 |
+
|
27 |
def parse_query(query):
|
28 |
"""Parse the query into date, time, and location."""
|
29 |
parts = query.split()
|
|
|
82 |
return {"error": "Date out of range (1900–2050)."}
|
83 |
|
84 |
# Initialize Swiss Ephemeris
|
85 |
+
swe.set_ephe_path("https://github.com/aloistr/swisseph/tree/master/ephe") # Use default ephemeris path
|
86 |
|
87 |
# Map planet names to Swiss Ephemeris constants
|
88 |
planet_objects = {
|