Spaces:
Build error
Build error
Erik Kenkel
commited on
Commit
·
4b99bc7
1
Parent(s):
c306ea0
removed posix for windows
Browse files
app.py
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
from fastai.vision.all import load_learner
|
2 |
from PIL import Image
|
3 |
import gradio as gr
|
4 |
-
import pathlib
|
5 |
from pillow_heif import register_heif_opener
|
6 |
import pillow_avif
|
7 |
|
@@ -9,8 +9,8 @@ register_heif_opener()
|
|
9 |
|
10 |
# For the posix path error: when you train your model on colab/gradient and download it, then do inference on Windows.
|
11 |
# Redirect PosixPath to WindowsPath:
|
12 |
-
temp = pathlib.PosixPath
|
13 |
-
pathlib.PosixPath = pathlib.WindowsPath
|
14 |
|
15 |
|
16 |
# Data below sourced from:
|
|
|
1 |
from fastai.vision.all import load_learner
|
2 |
from PIL import Image
|
3 |
import gradio as gr
|
4 |
+
# import pathlib
|
5 |
from pillow_heif import register_heif_opener
|
6 |
import pillow_avif
|
7 |
|
|
|
9 |
|
10 |
# For the posix path error: when you train your model on colab/gradient and download it, then do inference on Windows.
|
11 |
# Redirect PosixPath to WindowsPath:
|
12 |
+
# temp = pathlib.PosixPath
|
13 |
+
# pathlib.PosixPath = pathlib.WindowsPath
|
14 |
|
15 |
|
16 |
# Data below sourced from:
|