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