Spaces:
Running
Running
Pclanglais
commited on
Commit
•
0ca9505
1
Parent(s):
4d0b4ea
Update app.py
Browse files
app.py
CHANGED
@@ -11,7 +11,7 @@ from concurrent.futures import ThreadPoolExecutor
|
|
11 |
device = "cuda" if torch.cuda.is_available() else "cpu"
|
12 |
|
13 |
# Load CTranslate2 model and tokenizer
|
14 |
-
model_path = "
|
15 |
generator = ctranslate2.Generator(model_path, device=device)
|
16 |
tokenizer = transformers.AutoTokenizer.from_pretrained("PleIAs/OCRonos-Vintage")
|
17 |
|
|
|
11 |
device = "cuda" if torch.cuda.is_available() else "cpu"
|
12 |
|
13 |
# Load CTranslate2 model and tokenizer
|
14 |
+
model_path = "ocronos_CT2"
|
15 |
generator = ctranslate2.Generator(model_path, device=device)
|
16 |
tokenizer = transformers.AutoTokenizer.from_pretrained("PleIAs/OCRonos-Vintage")
|
17 |
|