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