Wataru commited on
Commit
23a6dd1
·
1 Parent(s): 5960d7e

specify ssl model type

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -21,7 +21,8 @@ def load_model(checkpoint_path: str):
21
  """Loads the model from the given checkpoint path."""
22
  global model
23
  model = SSLMOSLightningModule.load_from_checkpoint(
24
- checkpoint_path, map_location=device
 
25
  )
26
  model.eval()
27
  print(f"Model loaded from {checkpoint_path}")
 
21
  """Loads the model from the given checkpoint path."""
22
  global model
23
  model = SSLMOSLightningModule.load_from_checkpoint(
24
+ checkpoint_path, map_location=device,
25
+ ssl_model_type='w2v2',
26
  )
27
  model.eval()
28
  print(f"Model loaded from {checkpoint_path}")