Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,7 +1,7 @@
|
|
| 1 |
-
from gradio.components import Image, Label
|
| 2 |
import gradio as gr
|
|
|
|
|
|
|
| 3 |
from fastai.vision.all import *
|
| 4 |
-
import skimage
|
| 5 |
|
| 6 |
learn = load_learner('ConvNext_RmsProps.pkl')
|
| 7 |
|
|
@@ -17,7 +17,7 @@ description = "European Mushroom Common Genus Image Classifier trained on the Ka
|
|
| 17 |
article="<p style='text-align: center'><a href='https://tmabraham.github.io/blog/gradio_hf_spaces_tutorial' target='_blank'>Blog post</a></p>"
|
| 18 |
examples = ['Amanita.jpg']
|
| 19 |
interpretation='default'
|
| 20 |
-
allow_queue=True
|
| 21 |
|
| 22 |
gr.Interface(fn=predict,
|
| 23 |
inputs=Image(shape=(224, 224)),
|
|
|
|
|
|
|
| 1 |
import gradio as gr
|
| 2 |
+
from gradio.inputs import Image
|
| 3 |
+
from gradio.outputs import Label
|
| 4 |
from fastai.vision.all import *
|
|
|
|
| 5 |
|
| 6 |
learn = load_learner('ConvNext_RmsProps.pkl')
|
| 7 |
|
|
|
|
| 17 |
article="<p style='text-align: center'><a href='https://tmabraham.github.io/blog/gradio_hf_spaces_tutorial' target='_blank'>Blog post</a></p>"
|
| 18 |
examples = ['Amanita.jpg']
|
| 19 |
interpretation='default'
|
| 20 |
+
allow_queue=True
|
| 21 |
|
| 22 |
gr.Interface(fn=predict,
|
| 23 |
inputs=Image(shape=(224, 224)),
|