Spaces:
Build error
Build error
Erik Kenkel
commited on
Commit
·
c0374d5
1
Parent(s):
b673ac0
error building on hugging face with PosixPath
Browse files
app.py
CHANGED
@@ -1,11 +1,11 @@
|
|
1 |
from fastai.vision.all import load_learner
|
2 |
import gradio as gr
|
3 |
-
import pathlib
|
4 |
|
5 |
# For the posix path error: when you train your model on colab/gradient and download it, then do inference on Windows.
|
6 |
# Redirect PosixPath to WindowsPath:
|
7 |
-
temp = pathlib.PosixPath
|
8 |
-
pathlib.PosixPath = pathlib.WindowsPath
|
9 |
|
10 |
|
11 |
# Data below sourced from:
|
|
|
1 |
from fastai.vision.all import load_learner
|
2 |
import gradio as gr
|
3 |
+
# import pathlib
|
4 |
|
5 |
# For the posix path error: when you train your model on colab/gradient and download it, then do inference on Windows.
|
6 |
# Redirect PosixPath to WindowsPath:
|
7 |
+
# temp = pathlib.PosixPath
|
8 |
+
# pathlib.PosixPath = pathlib.WindowsPath
|
9 |
|
10 |
|
11 |
# Data below sourced from:
|