rairo commited on
Commit
2a04067
·
verified ·
1 Parent(s): 1d2bbdd

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +2 -2
main.py CHANGED
@@ -194,14 +194,14 @@ def process_with_gemini(model, text):
194
  }"""
195
  try:
196
 
197
- resp = client.models.generate_content(model='gemini-2.0-flash-exp', contents=[prompt, text])
198
  time.sleep(6) # match your Streamlit rate-limit workaround
199
  return resp.text
200
  except Exception as e:
201
  # retry once on 504
202
  if hasattr(e, "response") and getattr(e.response, "status_code", None) == 504:
203
  time.sleep(6)
204
- resp = client.models.generate_content(model='gemini-2.0-flash-exp', [prompt, text])
205
  return resp.text
206
  raise
207
 
 
194
  }"""
195
  try:
196
 
197
+ resp = client.models.generate_content(model='gemini-2.0-flash-thinking-exp', contents=[prompt, text])
198
  time.sleep(6) # match your Streamlit rate-limit workaround
199
  return resp.text
200
  except Exception as e:
201
  # retry once on 504
202
  if hasattr(e, "response") and getattr(e.response, "status_code", None) == 504:
203
  time.sleep(6)
204
+ resp = client.models.generate_content(model='gemini-2.0-flash-thinking-exp', contents=[prompt, text])
205
  return resp.text
206
  raise
207