Update app.py
Browse files
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
|
| 25 |
snapshot_download(
|
| 26 |
-
|
| 27 |
-
|
| 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 |
|