Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -23,7 +23,7 @@ questions = [
|
|
23 |
# Function to query the Gemini API
|
24 |
def query_gemini_api(user_answers):
|
25 |
# Correct Gemini API endpoint (based on Google's Generative AI documentation)
|
26 |
-
url = f"https://generativelanguage.googleapis.com/
|
27 |
|
28 |
headers = {'Content-Type': 'application/json'}
|
29 |
|
|
|
23 |
# Function to query the Gemini API
|
24 |
def query_gemini_api(user_answers):
|
25 |
# Correct Gemini API endpoint (based on Google's Generative AI documentation)
|
26 |
+
url = f"https://generativelanguage.googleapis.com/v1beta/models/gemini-1.5-flash-latest:generateContent?key={GEMINI_API_KEY}"
|
27 |
|
28 |
headers = {'Content-Type': 'application/json'}
|
29 |
|