Staticaliza commited on
Commit
4621e25
·
verified ·
1 Parent(s): 6c15fcf

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -32,7 +32,7 @@ def generate(image, instruction=DEFAULT_INPUT, sampling=False, temperature=0.7,
32
  repo.to(DEVICE)
33
 
34
  print(image)
35
- image_data = Image.fromarray(image_array.astype('uint8'), 'RGB')
36
  print(image_data, instruction)
37
 
38
  inputs = [{"role": "user", "content": [image_data, instruction]}]
 
32
  repo.to(DEVICE)
33
 
34
  print(image)
35
+ image_data = Image.fromarray(image.astype('uint8'), 'RGB')
36
  print(image_data, instruction)
37
 
38
  inputs = [{"role": "user", "content": [image_data, instruction]}]