FarziBuilder commited on
Commit
cf5476e
·
1 Parent(s): 5bfc131

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -32,8 +32,10 @@ from IPython.display import display
32
  from PIL import Image
33
 
34
  import pathlib
35
- temp = pathlib.PosixPath
36
- pathlib.PosixPath = pathlib.WindowsPath
 
 
37
 
38
  def search_images(term, max_images=50):
39
  print(f"Searching for '{term}'")
 
32
  from PIL import Image
33
 
34
  import pathlib
35
+ #temp = pathlib.PosixPath
36
+ #pathlib.PosixPath = pathlib.WindowsPath
37
+ plt = platform.system()
38
+ if plt == 'Linux': pathlib.WindowsPath = pathlib.PosixPath
39
 
40
  def search_images(term, max_images=50):
41
  print(f"Searching for '{term}'")