Spaces:
Runtime error
Runtime error
Fix depreceated names
Browse files
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'
|
16 |
examples = ['black_bear_example.jpg']
|
17 |
-
interpretation='default'
|
18 |
enable_queue=True
|
19 |
|
20 |
-
gr.Interface(fn=predict,inputs=gr.
|
21 |
-
outputs=gr.
|
22 |
-
description=description,article=article,examples=examples
|
23 |
-
|
|
|
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)
|