kevinwang676 commited on
Commit
4e0e057
·
verified ·
1 Parent(s): 743980c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -358,12 +358,13 @@ def load_hubert():
358
  suffix="",
359
  )
360
  hubert_model = models[0]
361
- hubert_model = hubert_model.to("cpu")#(config.device)
362
  if config.is_half:
363
  hubert_model = hubert_model.half()
364
  else:
365
  hubert_model = hubert_model.float()
366
  hubert_model.eval()
 
367
  return hubert_model
368
 
369
  hubert_model = load_hubert()
 
358
  suffix="",
359
  )
360
  hubert_model = models[0]
361
+ hubert_model = hubert_model.to(config.device)
362
  if config.is_half:
363
  hubert_model = hubert_model.half()
364
  else:
365
  hubert_model = hubert_model.float()
366
  hubert_model.eval()
367
+ print(hubert_model)
368
  return hubert_model
369
 
370
  hubert_model = load_hubert()