Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -5,12 +5,8 @@ import time
|
|
5 |
import tempfile
|
6 |
import platform
|
7 |
import gc
|
8 |
-
|
9 |
-
|
10 |
-
# pathlib.PosixPath = pathlib.WindowsPath
|
11 |
-
# elif platform.system().lower() == 'linux':
|
12 |
-
# temp = pathlib.WindowsPath
|
13 |
-
# pathlib.WindowsPath = pathlib.PosixPath
|
14 |
os.environ["PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION"] = "python"
|
15 |
|
16 |
import langid
|
|
|
5 |
import tempfile
|
6 |
import platform
|
7 |
import gc
|
8 |
+
temp = pathlib.WindowsPath
|
9 |
+
pathlib.WindowsPath = pathlib.PosixPath
|
|
|
|
|
|
|
|
|
10 |
os.environ["PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION"] = "python"
|
11 |
|
12 |
import langid
|