Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,5 +1,5 @@
|
|
| 1 |
import gradio as gr
|
| 2 |
-
learn =
|
| 3 |
labels = learn.dls.vocab
|
| 4 |
def predict(img):
|
| 5 |
img = PILImage.create(img)
|
|
|
|
| 1 |
import gradio as gr
|
| 2 |
+
learn = load_learner('model.pkl')
|
| 3 |
labels = learn.dls.vocab
|
| 4 |
def predict(img):
|
| 5 |
img = PILImage.create(img)
|