Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -19,5 +19,9 @@ def predict(img):
|
|
| 19 |
|
| 20 |
# Creamos la interfaz y la lanzamos.
|
| 21 |
# gr.Interface(fn=predict, inputs=gr.inputs.Image(shape=(128, 128)), outputs="text",examples=['anonymized_1284335.jpg','anonymized_1326804.jpg']).launch(share=False)
|
| 22 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 23 |
|
|
|
|
| 19 |
|
| 20 |
# Creamos la interfaz y la lanzamos.
|
| 21 |
# gr.Interface(fn=predict, inputs=gr.inputs.Image(shape=(128, 128)), outputs="text",examples=['anonymized_1284335.jpg','anonymized_1326804.jpg']).launch(share=False)
|
| 22 |
+
image = gr.Image(shape=(128, 128))
|
| 23 |
+
label = gr.Label()
|
| 24 |
+
|
| 25 |
+
intf = gr.Interface(fn=predict, inputs=image, outputs=label, examples=['anonymized_1284335.jpg','anonymized_1326804.jpg'])
|
| 26 |
+
intf.launch(inline=False)
|
| 27 |
|