prithivMLmods commited on
Commit
8288776
·
verified ·
1 Parent(s): e620b93

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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-ai/DeepSeek-OCR"
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