Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -19,12 +19,11 @@ def initialize_model(model_name):
|
|
19 |
print("Model initialized!")
|
20 |
return model_pipe
|
21 |
|
22 |
-
model_pipe = initialize_model("clip-flant5-xl")
|
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(
|
|
|
19 |
print("Model initialized!")
|
20 |
return model_pipe
|
21 |
|
|
|
|
|
22 |
@spaces.GPU
|
23 |
def generate(image, text):
|
24 |
print("Image:", image)
|
25 |
print("Text:", text)
|
26 |
+
model_pipe = initialize_model("clip-flant5-xl")
|
27 |
return model_pipe(images=[image], texts=[text])
|
28 |
|
29 |
iface = gr.Interface(
|