Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -1,7 +1,9 @@
|
|
1 |
import gradio as gr
|
2 |
from fastai.vision.all import PILImage
|
3 |
|
|
|
4 |
|
|
|
5 |
|
6 |
def predict(image):
|
7 |
# Transform the image
|
|
|
1 |
import gradio as gr
|
2 |
from fastai.vision.all import PILImage
|
3 |
|
4 |
+
from fastai.learner import load_learner
|
5 |
|
6 |
+
learn = load_learner(dog_cat_multi.pkl')
|
7 |
|
8 |
def predict(image):
|
9 |
# Transform the image
|