Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -42,6 +42,9 @@ def query_gemini_api(user_answers):
|
|
42 |
# Send the request to the Gemini API
|
43 |
response = requests.post(url, headers=headers, json=payload)
|
44 |
|
|
|
|
|
|
|
45 |
if response.status_code == 200:
|
46 |
result = response.json()
|
47 |
# Return the result from Gemini API (mood and recommendations)
|
|
|
42 |
# Send the request to the Gemini API
|
43 |
response = requests.post(url, headers=headers, json=payload)
|
44 |
|
45 |
+
# Debugging: Print the raw response to check its structure
|
46 |
+
print("API Response:", response.json())
|
47 |
+
|
48 |
if response.status_code == 200:
|
49 |
result = response.json()
|
50 |
# Return the result from Gemini API (mood and recommendations)
|