mgokg commited on
Commit
b513a76
·
verified ·
1 Parent(s): 14c46c3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -29,8 +29,8 @@ async def generate(input_text):
29
  return
30
 
31
  # Initialize the standard client
32
- client = genai.Client(api_key=GEMINI_API_KEY)
33
- model_id = "gemini-1.5-flash" # Ensure this is a valid model ID for your tier
34
 
35
  train_tool = types.Tool(
36
  function_declarations=[
 
29
  return
30
 
31
  # Initialize the standard client
32
+ client = genai.Client(api_key=GEMINI_API_KEY, http_options={'api_version': 'v1alpha'})
33
+ model_id = "gemini-2.5-flash" # Ensure this is a valid model ID for your tier
34
 
35
  train_tool = types.Tool(
36
  function_declarations=[