Spaces:
Running
Running
Pclanglais
commited on
Commit
•
8482186
1
Parent(s):
0ca9505
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 |
|