Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
@@ -30,12 +30,12 @@ image = gr.inputs.Image()
|
|
30 |
label = gr.outputs.Label(num_top_classes=3)
|
31 |
|
32 |
gr.Interface(
|
33 |
-
fn=predict_img_label, inputs=image, outputs=label
|
34 |
|
35 |
title = "Image Classification Model Using RandAugment"
|
36 |
description = "Upload an image to classify images"
|
37 |
|
38 |
article = "<div style='text-align: center;'><a href='https://github.com/BishmoyPaul' target='_blank'>Space by Bishmoy Paul</a><br><a href='https://keras.io/examples/vision/randaugment/' target='_blank'>Keras example by Sayak Paul</a></div>"
|
39 |
-
gr.Interface(predict_img_label, inputs=image, outputs=label, allow_flagging=False,
|
40 |
-
examples = ['airplane.png', 'automobile.png', 'frog.png', 'horse.png'],
|
41 |
title=title, description=description, article=article).launch(enable_queue=True)
|
|
|
30 |
label = gr.outputs.Label(num_top_classes=3)
|
31 |
|
32 |
gr.Interface(
|
33 |
+
fn=predict_img_label, inputs=image, outputs=label).launch()
|
34 |
|
35 |
title = "Image Classification Model Using RandAugment"
|
36 |
description = "Upload an image to classify images"
|
37 |
|
38 |
article = "<div style='text-align: center;'><a href='https://github.com/BishmoyPaul' target='_blank'>Space by Bishmoy Paul</a><br><a href='https://keras.io/examples/vision/randaugment/' target='_blank'>Keras example by Sayak Paul</a></div>"
|
39 |
+
gr.Interface(predict_img_label, inputs=image, outputs=label, allow_flagging=False,
|
40 |
+
examples = ['./airplane.png', './automobile.png', './frog.png', './horse.png'],
|
41 |
title=title, description=description, article=article).launch(enable_queue=True)
|