Abs6187 commited on
Commit
92ba5c1
·
verified ·
1 Parent(s): 82735ce

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -7,7 +7,7 @@ import google.generativeai as genai
7
  genai.configure(api_key=os.getenv("GEMINI_API_KEY"))
8
 
9
  # 2️⃣ Create a model and a stateful chat session
10
- model = genai.GenerativeModel("gemini-pro") # change model name if you like
11
  chat = model.start_chat() # history handled for you
12
 
13
  # 3️⃣ Callback that Gradio calls each turn
 
7
  genai.configure(api_key=os.getenv("GEMINI_API_KEY"))
8
 
9
  # 2️⃣ Create a model and a stateful chat session
10
+ model = genai.GenerativeModel("gemini-2.0-flash") # change model name if you like
11
  chat = model.start_chat() # history handled for you
12
 
13
  # 3️⃣ Callback that Gradio calls each turn