Update app.py
Browse files
app.py
CHANGED
|
@@ -17,7 +17,7 @@ device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
|
|
| 17 |
huggingface_hub.login(token=HF_TOKEN)
|
| 18 |
|
| 19 |
model_dir = huggingface_hub.snapshot_download(repo_id=REPO_ID, allow_patterns=["model/*"])
|
| 20 |
-
print(f'AOBA: {model_dir}', flush=True)
|
| 21 |
tokenizer = AutoTokenizer.from_pretrained(model_dir, trust_remote_code=True, use_auth_token=True)
|
| 22 |
model = AutoModelForCausalLM.from_pretrained(
|
| 23 |
model_dir,
|
|
|
|
| 17 |
huggingface_hub.login(token=HF_TOKEN)
|
| 18 |
|
| 19 |
model_dir = huggingface_hub.snapshot_download(repo_id=REPO_ID, allow_patterns=["model/*"])
|
| 20 |
+
print(f'AOBA: {os.listdir(model_dir)}', flush=True)
|
| 21 |
tokenizer = AutoTokenizer.from_pretrained(model_dir, trust_remote_code=True, use_auth_token=True)
|
| 22 |
model = AutoModelForCausalLM.from_pretrained(
|
| 23 |
model_dir,
|