Spaces:
Sleeping
Sleeping
Commit ·
e7f63c6
1
Parent(s): 545ae84
Update app.py
Browse files
app.py
CHANGED
|
@@ -10,4 +10,4 @@ def predict(img):
|
|
| 10 |
img = PILImage.create(img)
|
| 11 |
return {labels[i]: float(probs[i]) for i in range(len(labels))}
|
| 12 |
|
| 13 |
-
gr.Interface(fn=predict, inputs=gr.inputs.Image(shape=(512, 512)), outputs=gr.outputs.Label(num_top_classes=3)).launch(
|
|
|
|
| 10 |
img = PILImage.create(img)
|
| 11 |
return {labels[i]: float(probs[i]) for i in range(len(labels))}
|
| 12 |
|
| 13 |
+
gr.Interface(fn=predict, inputs=gr.inputs.Image(shape=(512, 512)), outputs=gr.outputs.Label(num_top_classes=3)).launch()
|