zhiqiulin commited on
Commit
921363c
·
verified ·
1 Parent(s): 71bd0a4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -2
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(