zhiqiulin commited on
Commit
9910355
·
verified ·
1 Parent(s): a4aa340

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -11,8 +11,8 @@ print(list_all_vqascore_models())
11
 
12
  # Initialize the model only once
13
  # if torch.cuda.is_available():
14
- model_pipe = VQAScore(model="clip-flant5-xl", device="cpu") # our recommended scoring model
15
- print("Model initialized!")
16
 
17
  @spaces.GPU
18
  def generate(model_name, image, text):
 
11
 
12
  # Initialize the model only once
13
  # if torch.cuda.is_available():
14
+ # model_pipe = VQAScore(model="clip-flant5-xl", device="cpu") # our recommended scoring model
15
+ # print("Model initialized!")
16
 
17
  @spaces.GPU
18
  def generate(model_name, image, text):