zhiqiulin commited on
Commit
063aeac
·
verified ·
1 Parent(s): bb3e7c9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -23,8 +23,8 @@ def generate(model_name, image, text):
23
  # print("Model initialized, now moving to cuda")
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(
 
23
  # print("Model initialized, now moving to cuda")
24
  # model_pipe.to("cuda")
25
  print("Generating!")
26
+ # with torch.autocast(device_type='cuda'):
27
+ result = model_pipe(images=[image], texts=[text])
28
  return result
29
 
30
  iface = gr.Interface(