Ryu-m0m commited on
Commit
f29298a
1 Parent(s): be0aedc

update pathlib

Browse files
Files changed (1) hide show
  1. app.py +6 -1
app.py CHANGED
@@ -3,6 +3,7 @@ import pandas as pd
3
  from fastai import *
4
  from fastai.vision.all import *
5
  import pickle
 
6
 
7
  header = st.container()
8
  inference = st.container()
@@ -11,7 +12,11 @@ with header:
11
  st.title("Cuisine Classifier")
12
  st.text("Is your food Italian, French, Chinese, Indian, or Japanese?")
13
 
14
- with inference:
 
 
 
 
15
  path = Path()
16
  path.ls(file_exts='.pkl')
17
 
 
3
  from fastai import *
4
  from fastai.vision.all import *
5
  import pickle
6
+ import pathlib
7
 
8
  header = st.container()
9
  inference = st.container()
 
12
  st.title("Cuisine Classifier")
13
  st.text("Is your food Italian, French, Chinese, Indian, or Japanese?")
14
 
15
+ with inference:
16
+ plt = platform.system()
17
+ if plt == 'Linux':
18
+ pathlib.WindowsPath = pathlib.PosixPath
19
+
20
  path = Path()
21
  path.ls(file_exts='.pkl')
22