Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -22,7 +22,7 @@ questions = [
|
|
22 |
|
23 |
# Function to query the Gemini API
|
24 |
def query_gemini_api(user_answers):
|
25 |
-
url = https://generativelanguage.googleapis.com/v1beta/models/gemini-1.5-flash:generateContent?key=
|
26 |
headers = {'Content-Type': 'application/json'}
|
27 |
|
28 |
# Prepare the payload with user answers
|
|
|
22 |
|
23 |
# Function to query the Gemini API
|
24 |
def query_gemini_api(user_answers):
|
25 |
+
url = f'https://generativelanguage.googleapis.com/v1beta/models/gemini-1.5-flash-latest:generateContent?key={GEMINI_API_KEY}'
|
26 |
headers = {'Content-Type': 'application/json'}
|
27 |
|
28 |
# Prepare the payload with user answers
|