tarrasyed19472007 commited on
Commit
5517275
·
verified ·
1 Parent(s): 3afb474

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -0
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)