Plachta commited on
Commit
e448a2c
·
verified ·
1 Parent(s): be25359

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -6
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
- 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
 
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