Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -6,7 +6,7 @@ from pathlib import Path
|
|
6 |
|
7 |
|
8 |
flair.device = torch.device('cpu')
|
9 |
-
os.makedirs("Corpora", exist_ok=True)
|
10 |
flair.cache_root = Path(f"Corpora/.flair")
|
11 |
pos_tagger = SequenceTagger.load("qanastek/pos-french-camembert-flair")
|
12 |
del pos_tagger
|
|
|
6 |
|
7 |
|
8 |
flair.device = torch.device('cpu')
|
9 |
+
os.makedirs("Corpora/.flair/models/pos-french-camembert-flair", exist_ok=True)
|
10 |
flair.cache_root = Path(f"Corpora/.flair")
|
11 |
pos_tagger = SequenceTagger.load("qanastek/pos-french-camembert-flair")
|
12 |
del pos_tagger
|