Spaces:
Runtime error
Runtime error
let's deploy to huggingface spaces
Browse files
app.py
CHANGED
|
@@ -1,5 +1,6 @@
|
|
| 1 |
-
from fastai.vision.all import *
|
| 2 |
import gradio as gr
|
|
|
|
|
|
|
| 3 |
|
| 4 |
learn = load_learner('sport_car_classifier.pkl')
|
| 5 |
labels = learn.dls.vocab
|
|
@@ -12,9 +13,9 @@ gr.Interface(
|
|
| 12 |
fn=predict,
|
| 13 |
inputs=gr.inputs.Image(
|
| 14 |
shape=(512, 512)),
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
|
| 20 |
-
|
|
|
|
|
|
|
| 1 |
import gradio as gr
|
| 2 |
+
from fastai.vision.all import *
|
| 3 |
+
import skimag
|
| 4 |
|
| 5 |
learn = load_learner('sport_car_classifier.pkl')
|
| 6 |
labels = learn.dls.vocab
|
|
|
|
| 13 |
fn=predict,
|
| 14 |
inputs=gr.inputs.Image(
|
| 15 |
shape=(512, 512)),
|
| 16 |
+
outputs=gr.outputs.Label(num_top_classes=3),
|
| 17 |
+
title="Sport car classifier",
|
| 18 |
+
description="An app design to classifie the most relateve sportcars",
|
| 19 |
+
examples=['bmw.jpg', 'lamborghini.jpg', 'koenigsegg.jpg'],
|
| 20 |
+
interpretation='default',
|
| 21 |
+
enable_queue=True).launch(share=True)
|