asalhi85 commited on
Commit
388dde5
1 Parent(s): 161f392

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -133,7 +133,7 @@ def bot(
133
  prompt,
134
  stream=True,
135
  generation_config=generation_config,safety_settings=safety_settings)
136
- response.resolve()
137
 
138
  out1 = response.text
139
 
@@ -143,6 +143,7 @@ def bot(
143
  stream=True,
144
  generation_config=generation_config, safety_settings=safety_settings)
145
  response.resolve()
 
146
  else:
147
  image_prompt = preprocess_image(image_prompt)
148
  model = genai.GenerativeModel('gemini-pro-vision')
 
133
  prompt,
134
  stream=True,
135
  generation_config=generation_config,safety_settings=safety_settings)
136
+ #response.resolve()
137
 
138
  out1 = response.text
139
 
 
143
  stream=True,
144
  generation_config=generation_config, safety_settings=safety_settings)
145
  response.resolve()
146
+
147
  else:
148
  image_prompt = preprocess_image(image_prompt)
149
  model = genai.GenerativeModel('gemini-pro-vision')