Spaces:
Runtime error
Runtime error
Ivan Shelonik
commited on
Commit
·
2cefd9b
1
Parent(s):
ed25dd4
fix: posixpath to str
Browse files- api_server.py +1 -1
api_server.py
CHANGED
@@ -4,7 +4,7 @@ import numpy as np
|
|
4 |
|
5 |
from pathlib import Path
|
6 |
|
7 |
-
os.environ['TRANSFORMERS_CACHE'] = Path('./artifacts/').absolute()
|
8 |
|
9 |
|
10 |
# Disable tensorflow warnings
|
|
|
4 |
|
5 |
from pathlib import Path
|
6 |
|
7 |
+
os.environ['TRANSFORMERS_CACHE'] = str(Path('./artifacts/').absolute())
|
8 |
|
9 |
|
10 |
# Disable tensorflow warnings
|