Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
|
@@ -13,7 +13,7 @@ device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
|
|
| 13 |
print(f"✅ Using device: {device}")
|
| 14 |
|
| 15 |
print("Loading model and tokenizer...")
|
| 16 |
-
model_name = "deepseek-
|
| 17 |
tokenizer = AutoTokenizer.from_pretrained(model_name, trust_remote_code=True)
|
| 18 |
|
| 19 |
# Load the model directly to the specified device and set to evaluation mode
|
|
|
|
| 13 |
print(f"✅ Using device: {device}")
|
| 14 |
|
| 15 |
print("Loading model and tokenizer...")
|
| 16 |
+
model_name = "strangervisionhf/deepseek-ocr-latest-transformers"
|
| 17 |
tokenizer = AutoTokenizer.from_pretrained(model_name, trust_remote_code=True)
|
| 18 |
|
| 19 |
# Load the model directly to the specified device and set to evaluation mode
|