Hanna Hjelmeland commited on
Commit
28981b1
1 Parent(s): 4877bf2

Add app title

Browse files
Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -1,4 +1,4 @@
1
- __all__ = ['is_cat', 'learn', 'classify_image', 'categories', 'image', 'label', 'examples', 'intf']
2
 
3
  # Cell
4
  from fastai.vision.all import *
@@ -21,5 +21,7 @@ image = gr.inputs.Image(shape=(192, 192))
21
  label = gr.outputs.Label()
22
  examples = ['images/flower.jpg', 'images/plant.jpg', 'images/dunno.jpg']
23
 
24
- intf = gr.Interface(fn=classify_image, inputs=image, outputs=label, examples=examples)
 
 
25
  intf.launch(inline=False)
 
1
+ __all__ = ['is_flower', 'learn', 'classify_image', 'categories', 'image', 'label', 'examples', 'intf']
2
 
3
  # Cell
4
  from fastai.vision.all import *
 
21
  label = gr.outputs.Label()
22
  examples = ['images/flower.jpg', 'images/plant.jpg', 'images/dunno.jpg']
23
 
24
+ app_title = "Plant or Flower Classifier"
25
+
26
+ intf = gr.Interface(fn=classify_image, inputs=image, outputs=label, examples=examples, title=app_title)
27
  intf.launch(inline=False)