lucasvw commited on
Commit
cc5feed
1 Parent(s): 7036bea
Files changed (1) hide show
  1. app.py +8 -2
app.py CHANGED
@@ -1,7 +1,7 @@
1
  # AUTOGENERATED! DO NOT EDIT! File to edit: ../01.ipynb.
2
 
3
  # %% auto 0
4
- __all__ = ['learner', 'labels', 'image', 'predict']
5
 
6
  # %% ../01.ipynb 3
7
  from fastai.vision.all import *
@@ -23,4 +23,10 @@ import gradio as gr
23
  image = gr.inputs.Image(shape=(512, 512))
24
  outputs = gr.outputs.Label(num_top_classes=3)
25
 
26
- gr.Interface(fn=predict, inputs=image, outputs=outputs).launch(inline=False)
 
 
 
 
 
 
 
1
  # AUTOGENERATED! DO NOT EDIT! File to edit: ../01.ipynb.
2
 
3
  # %% auto 0
4
+ __all__ = ['learner', 'labels', 'image', 'outputs', 'title', 'description', 'examples', 'interpretation', 'predict']
5
 
6
  # %% ../01.ipynb 3
7
  from fastai.vision.all import *
 
23
  image = gr.inputs.Image(shape=(512, 512))
24
  outputs = gr.outputs.Label(num_top_classes=3)
25
 
26
+ title = "Road vs Gravel Bike Classifier"
27
+ description = "Since for a human it's sometimes almost impossible to distuingish the two, let's see if an AI is better at telling them apart!"
28
+ examples = ['gravelbike.jpeg', 'roadbike.jpeg']
29
+ interpretation='default'
30
+
31
+
32
+ gr.Interface(fn=predict, inputs=image, outputs=outputs, title=title, description=description, examples=examples).launch(inline=False)