sameha commited on
Commit
d5cea1f
·
1 Parent(s): 5f2c9ae

Fix depreceated names

Browse files
Files changed (1) hide show
  1. app.py +5 -6
app.py CHANGED
@@ -12,12 +12,11 @@ def predict(img):
12
 
13
  title = "Bear Classifier"
14
  description = "A bear classifier trained on internet image dataset with fastai."
15
- article="<p style='text-align: center'><a href='https://tmabraham.github.io/blog/gradio_hf_spaces_tutorial' target='_blank'>Blog post</a></p>"
16
  examples = ['black_bear_example.jpg']
17
- interpretation='default'
18
  enable_queue=True
19
 
20
- gr.Interface(fn=predict,inputs=gr.inputs.Image(shape=(512, 512)),
21
- outputs=gr.outputs.Label(num_top_classes=3),title=title,
22
- description=description,article=article,examples=examples,
23
- interpretation=interpretation,enable_queue=enable_queue).launch()
 
12
 
13
  title = "Bear Classifier"
14
  description = "A bear classifier trained on internet image dataset with fastai."
15
+ article="<p style='text-align: center'>Thank you</p>"
16
  examples = ['black_bear_example.jpg']
 
17
  enable_queue=True
18
 
19
+ gr.Interface(fn=predict,inputs=gr.Image(shape=(512, 512)),
20
+ outputs=gr.Label(num_top_classes=3),title=title,
21
+ description=description,article=article,examples=examples).launch(
22
+ enable_queue=enable_queue)