zhiqiulin commited on
Commit
7854423
·
verified ·
1 Parent(s): b3e5341

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -24,7 +24,7 @@ def generate(model_name, image, text):
24
  # model_pipe.to("cuda")
25
  print("Generating!")
26
  with torch.autocast(device_type='cuda', dtype=torch.bfloat16):
27
- result = model_pipe(images=[image_tensor], texts=[text])
28
  return result
29
 
30
  iface = gr.Interface(
 
24
  # model_pipe.to("cuda")
25
  print("Generating!")
26
  with torch.autocast(device_type='cuda', dtype=torch.bfloat16):
27
+ result = model_pipe(images=[image], texts=[text])
28
  return result
29
 
30
  iface = gr.Interface(