Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -2,7 +2,7 @@ import gradio as gr
|
|
| 2 |
from fastai.vision.all import *
|
| 3 |
import skimage
|
| 4 |
|
| 5 |
-
learn = load_learner('
|
| 6 |
|
| 7 |
labels = learn.dls.vocab
|
| 8 |
def predict(img):
|
|
@@ -14,4 +14,4 @@ title = "Gender Detector"
|
|
| 14 |
interpretation='default'
|
| 15 |
enable_queue=True
|
| 16 |
|
| 17 |
-
gr.Interface(fn=predict,inputs=gr.inputs.Image(),outputs=gr.outputs.Label(num_top_classes=
|
|
|
|
| 2 |
from fastai.vision.all import *
|
| 3 |
import skimage
|
| 4 |
|
| 5 |
+
learn = load_learner('export.pkl')
|
| 6 |
|
| 7 |
labels = learn.dls.vocab
|
| 8 |
def predict(img):
|
|
|
|
| 14 |
interpretation='default'
|
| 15 |
enable_queue=True
|
| 16 |
|
| 17 |
+
gr.Interface(fn=predict,inputs=gr.inputs.Image(),outputs=gr.outputs.Label(num_top_classes=2),title=title,interpretation=interpretation,enable_queue=enable_queue).launch()
|