Spaces:
Sleeping
Sleeping
Changes
Browse files
app.py
CHANGED
@@ -5,7 +5,7 @@ from huggingface_hub import hf_hub_download
|
|
5 |
import os
|
6 |
|
7 |
# Load the model checkpoint and tokenizer files from Hugging Face Model Hub
|
8 |
-
checkpoint_folder = hf_hub_download(repo_id="Heramb26/tr-ocr-custom-checkpoints", filename="checkpoint-2070")
|
9 |
|
10 |
# Set up the device (GPU or CPU)
|
11 |
device = torch.device('cuda' if torch.cuda.is_available() else 'cpu')
|
|
|
5 |
import os
|
6 |
|
7 |
# Load the model checkpoint and tokenizer files from Hugging Face Model Hub
|
8 |
+
# checkpoint_folder = hf_hub_download(repo_id="Heramb26/tr-ocr-custom-checkpoints", filename="checkpoint-2070")
|
9 |
|
10 |
# Set up the device (GPU or CPU)
|
11 |
device = torch.device('cuda' if torch.cuda.is_available() else 'cpu')
|