qibin0506 commited on
Commit
ed1bb4f
·
verified ·
1 Parent(s): 22df5b4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -21,10 +21,10 @@ elif hasattr(torch.backends, "mps") and torch.backends.mps.is_available():
21
  model_name = 'dpo.bin'
22
 
23
  if not os.path.exists(f'./{model_name}'):
24
- from modelscope import snapshot_download
25
  snapshot_download(
26
- f'qibin0506/Cortex-2.5.1',
27
- allow_file_pattern=[model_name],
28
  local_dir='./'
29
  )
30
 
 
21
  model_name = 'dpo.bin'
22
 
23
  if not os.path.exists(f'./{model_name}'):
24
+ from huggingface_hub import snapshot_download
25
  snapshot_download(
26
+ 'qibin0506/Cortex',
27
+ allow_patterns=model_name,
28
  local_dir='./'
29
  )
30