Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
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=[
|
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(
|