zhiqiulin commited on
Commit
e58c712
·
verified ·
1 Parent(s): 1fd93ff

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -11,7 +11,7 @@ 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") # our recommended scoring model
15
  print("Model initialized!")
16
 
17
  @spaces.GPU
 
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