johnbradley commited on
Commit
caf9bcd
·
verified ·
1 Parent(s): ed3a52f

fix temperature

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -78,13 +78,13 @@ def generate_content_str(api_key, prompt, pil_image, tries=PROMPT_RETRYIES):
78
  client = genai.Client(api_key=api_key)
79
  generate_content_config = types.GenerateContentConfig(
80
  response_mime_type="application/json",
 
81
  )
82
 
83
  while True:
84
  try:
85
  response = client.models.generate_content(
86
- model="gemini-2.5-flash-preview-05-20",
87
- temperature=0.0,
88
  contents=[prompt, pil_image],
89
  config=generate_content_config,
90
  )
 
78
  client = genai.Client(api_key=api_key)
79
  generate_content_config = types.GenerateContentConfig(
80
  response_mime_type="application/json",
81
+ temperature=0.0,
82
  )
83
 
84
  while True:
85
  try:
86
  response = client.models.generate_content(
87
+ model="gemini-2.5-flash-preview-05-20",
 
88
  contents=[prompt, pil_image],
89
  config=generate_content_config,
90
  )