tarrasyed19472007 commited on
Commit
caa62a1
·
verified ·
1 Parent(s): 63000fb

Update app.py

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