Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -4,7 +4,7 @@ import requests
|
|
| 4 |
# API endpoint URL for the Horoscope API
|
| 5 |
API_URL = "https://ai-research.quarkgen.ai/templedekho/numerology/v1"
|
| 6 |
|
| 7 |
-
def get_horoscope_response(name, year, month, day, hour, minutes, city, nation, question):
|
| 8 |
"""
|
| 9 |
Send a POST request to the horoscope API with the user-provided parameters.
|
| 10 |
"""
|
|
@@ -18,8 +18,8 @@ def get_horoscope_response(name, year, month, day, hour, minutes, city, nation,
|
|
| 18 |
"minutes": int(minutes),
|
| 19 |
"city": city,
|
| 20 |
"nation": nation,
|
| 21 |
-
"
|
| 22 |
-
"
|
| 23 |
}
|
| 24 |
|
| 25 |
response = requests.post(API_URL, json=payload)
|
|
|
|
| 4 |
# API endpoint URL for the Horoscope API
|
| 5 |
API_URL = "https://ai-research.quarkgen.ai/templedekho/numerology/v1"
|
| 6 |
|
| 7 |
+
def get_horoscope_response(name, year, month, day, hour, minutes, city, nation, language, question):
|
| 8 |
"""
|
| 9 |
Send a POST request to the horoscope API with the user-provided parameters.
|
| 10 |
"""
|
|
|
|
| 18 |
"minutes": int(minutes),
|
| 19 |
"city": city,
|
| 20 |
"nation": nation,
|
| 21 |
+
"language": language,
|
| 22 |
+
"question": question
|
| 23 |
}
|
| 24 |
|
| 25 |
response = requests.post(API_URL, json=payload)
|