Spaces:
Runtime error
Runtime error
Matthew Rice
commited on
Commit
•
4624926
1
Parent(s):
72c830a
Fix posix path issues for app
Browse files
app.py
CHANGED
@@ -1,6 +1,8 @@
|
|
1 |
from fastai.tabular.all import *
|
2 |
import gradio as gr
|
3 |
-
|
|
|
|
|
4 |
# path = Path()
|
5 |
df = pd.read_csv("rookie_year.csv")
|
6 |
learn = load_learner("export.pkl")
|
|
|
1 |
from fastai.tabular.all import *
|
2 |
import gradio as gr
|
3 |
+
import pathlib
|
4 |
+
plt = platform.system()
|
5 |
+
if plt == 'Linux': pathlib.WindowsPath = pathlib.PosixPath
|
6 |
# path = Path()
|
7 |
df = pd.read_csv("rookie_year.csv")
|
8 |
learn = load_learner("export.pkl")
|