ColdFireML commited on
Commit
b21acec
·
verified ·
1 Parent(s): 4af210e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -260,7 +260,9 @@ with gr.Blocks(css=css) as demo:
260
  imageFile = process_image(image)
261
  base64_image = encode_image(imageFile)
262
  #content.append({'image': f'file://{imageFile}'})
263
- content.append({'image': f'data:image/png;base64,{base64_image}', "resized_height": 2160, "resized_width": 3840 })
 
 
264
  if query:
265
  content.append({'text': query})
266
 
 
260
  imageFile = process_image(image)
261
  base64_image = encode_image(imageFile)
262
  #content.append({'image': f'file://{imageFile}'})
263
+ #content.append({'image': f'data:image/png;base64,{base64_image}', "resized_height": 2160, "resized_width": 3840 })
264
+ content.append({'image': f'data:image/png;base64,{base64_image}', "min_pixels": 8294720, "max_pixels": 8294720 })
265
+
266
  if query:
267
  content.append({'text': query})
268