Plachta commited on
Commit
61ff4cf
·
verified ·
1 Parent(s): 1e529fc

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -6
app.py CHANGED
@@ -5,12 +5,8 @@ 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
+ temp = pathlib.WindowsPath
9
+ pathlib.WindowsPath = pathlib.PosixPath
 
 
 
 
10
  os.environ["PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION"] = "python"
11
 
12
  import langid