Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -7,8 +7,7 @@ from pathlib import Path
|
|
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 |
-
print(os.listdir("."))
|
12 |
pos_tagger = SequenceTagger.load("qanastek/pos-french-camembert-flair")
|
13 |
del pos_tagger
|
14 |
|
|
|
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
|
13 |
|