Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -23,7 +23,9 @@ model_pipe = initialize_model("clip-flant5-xl")
|
|
23 |
|
24 |
@spaces.GPU
|
25 |
def generate(image, text):
|
26 |
-
|
|
|
|
|
27 |
|
28 |
iface = gr.Interface(
|
29 |
fn=generate, # function to call
|
|
|
23 |
|
24 |
@spaces.GPU
|
25 |
def generate(image, text):
|
26 |
+
print("Image:", image)
|
27 |
+
print("Text:", text)
|
28 |
+
return model_pipe(images=[image], texts=[text])
|
29 |
|
30 |
iface = gr.Interface(
|
31 |
fn=generate, # function to call
|