zhiqiulin commited on
Commit
71bd0a4
·
verified ·
1 Parent(s): 64a84c2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -23,7 +23,9 @@ model_pipe = initialize_model("clip-flant5-xl")
23
 
24
  @spaces.GPU
25
  def generate(image, text):
26
- return model_pipe(image, text)
 
 
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