Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -1,8 +1,9 @@
|
|
1 |
import gradio as gr
|
2 |
from fastai.vision.all import *
|
|
|
3 |
import skimage
|
4 |
|
5 |
-
|
6 |
|
7 |
labels = learn.dls.vocab
|
8 |
def predict(img):
|
|
|
1 |
import gradio as gr
|
2 |
from fastai.vision.all import *
|
3 |
+
from huggingface_hub import from_pretrained_fastai
|
4 |
import skimage
|
5 |
|
6 |
+
learner = from_pretrained_fastai("espejelomar/identify-my-cat")
|
7 |
|
8 |
labels = learn.dls.vocab
|
9 |
def predict(img):
|