Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -215,8 +215,8 @@ def inference(img):
|
|
215 |
result[classes[class_index]] = probabilities[0][top_5][i].item()
|
216 |
return result
|
217 |
|
218 |
-
title="
|
219 |
-
description="Gradio Demo for
|
220 |
-
article = "<p style='text-align: center'><a href='https://tfhub.dev/google/imagenet/
|
221 |
examples=[['apple1.jpg']]
|
222 |
gr.Interface(inference,gr.inputs.Image(type="filepath"),"label",title=title,description=description,article=article,examples=examples).launch(enable_queue=True)
|
|
|
215 |
result[classes[class_index]] = probabilities[0][top_5][i].item()
|
216 |
return result
|
217 |
|
218 |
+
title="mobilenet_v2_100_224"
|
219 |
+
description="Gradio Demo for mobilenet_v2_100_224: Imagenet (ILSVRC-2012-CLS) classification with MobileNet V2 (depth multiplier 1.00). To use it, simply upload your image or click on one of the examples to load them. Read more at the links below"
|
220 |
+
article = "<p style='text-align: center'><a href='https://tfhub.dev/google/imagenet/mobilenet_v2_100_224/classification/5' target='_blank'>Tensorflow Hub</a></p>"
|
221 |
examples=[['apple1.jpg']]
|
222 |
gr.Interface(inference,gr.inputs.Image(type="filepath"),"label",title=title,description=description,article=article,examples=examples).launch(enable_queue=True)
|