mutou0308 commited on
Commit
51153c1
·
verified ·
1 Parent(s): 67816f5

Upload folder using huggingface_hub

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -40,10 +40,10 @@ def load_model(
40
  device: str | torch.device = "cuda"
41
  ):
42
  enc_path = hf_hub_download(
43
- repo_id=pretrained_model_name_or_path, filename=os.path.join(model_name, 'GSASR_enhenced_ultra', 'encoder.pth')
44
  )
45
  dec_path = hf_hub_download(
46
- repo_id=pretrained_model_name_or_path, filename=os.path.join(model_name, 'GSASR_enhenced_ultra', 'decoder.pth')
47
  )
48
 
49
  enc_weight = torch.load(enc_path, weights_only=True)['params_ema']
 
40
  device: str | torch.device = "cuda"
41
  ):
42
  enc_path = hf_hub_download(
43
+ repo_id=pretrained_model_name_or_path, filename=os.path.join('GSASR_enhenced_ultra', model_name, 'encoder.pth')
44
  )
45
  dec_path = hf_hub_download(
46
+ repo_id=pretrained_model_name_or_path, filename=os.path.join('GSASR_enhenced_ultra', model_name, 'decoder.pth')
47
  )
48
 
49
  enc_weight = torch.load(enc_path, weights_only=True)['params_ema']