tarrasyed19472007 commited on
Commit
6cafcf6
·
verified ·
1 Parent(s): 590695e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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/v1beta2/models/text-bison-001:generateText?key={GEMINI_API_KEY}"
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