Brandon Rowlett commited on
Commit
b4046bf
·
1 Parent(s): 10faea5

trying to fix the pathlib problem in saving a pkl object on windows and running on linux

Browse files
Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -6,11 +6,13 @@
6
  # iface = gr.Interface(fn=greet, inputs="text", outputs="text")
7
  # iface.launch()
8
 
9
-
10
-
11
  from fastai.vision.all import *
12
  import gradio as gr
13
 
 
 
 
14
  def is_cat(x):
15
  return x[0].isupper()
16
 
 
6
  # iface = gr.Interface(fn=greet, inputs="text", outputs="text")
7
  # iface.launch()
8
 
9
+ import pathlib
 
10
  from fastai.vision.all import *
11
  import gradio as gr
12
 
13
+ plt = platform.system()
14
+ if plt == 'Linux': pathlib.WindowsPath = pathlib.PosixPath
15
+
16
  def is_cat(x):
17
  return x[0].isupper()
18