robinsk8a commited on
Commit
1312053
·
1 Parent(s): 25f9bd0

let's deploy to huggingface spaces

Browse files
Files changed (1) hide show
  1. app.py +8 -7
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
- outputs=gr.outputs.Label(num_top_classes=3),
16
- title="Sport car classifier",
17
- description="An app design to classifie the most relateve sportcars",
18
- examples=['bmw.jpg', 'lamborghini.jpg', 'koenigsegg.jpg'],
19
- interpretation='default',
20
- enable_queue=True).launch(share=True)
 
 
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)