KwabsHug commited on
Commit
89cc3f0
·
verified ·
1 Parent(s): d55541a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -179,8 +179,8 @@ modelflash = genai.GenerativeModel(
179
  )
180
 
181
  def geminiproinferenceinstance(text):
182
- global model
183
- chat_session = model.start_chat(
184
  history=[
185
  ]
186
  )
@@ -192,7 +192,7 @@ def geminiproinferenceinstance(text):
192
 
193
  def geminiflashinferenceinstance(text):
194
  global modelflash
195
- chat_session = model.start_chat(
196
  history=[
197
  ]
198
  )
 
179
  )
180
 
181
  def geminiproinferenceinstance(text):
182
+ global modelpro
183
+ chat_session = modelpro.start_chat(
184
  history=[
185
  ]
186
  )
 
192
 
193
  def geminiflashinferenceinstance(text):
194
  global modelflash
195
+ chat_session = modelflash.start_chat(
196
  history=[
197
  ]
198
  )