Update app.py
Browse files
app.py
CHANGED
|
@@ -9,7 +9,7 @@ import gradio as gr
|
|
| 9 |
def predict(img):
|
| 10 |
img = PILImage.create(img)
|
| 11 |
#pred,pred_idx,probs = learn.predict(img)
|
| 12 |
-
return img
|
| 13 |
|
| 14 |
# Creamos la interfaz y la lanzamos.
|
| 15 |
-
gr.Interface(fn=predict, inputs=gr.inputs.Image(shape=(128, 128)), outputs=gr.outputs.Image(label='Imagen resultado'),examples=['
|
|
|
|
| 9 |
def predict(img):
|
| 10 |
img = PILImage.create(img)
|
| 11 |
#pred,pred_idx,probs = learn.predict(img)
|
| 12 |
+
return {img}
|
| 13 |
|
| 14 |
# Creamos la interfaz y la lanzamos.
|
| 15 |
+
gr.Interface(fn=predict, inputs=gr.inputs.Image(shape=(128, 128)), outputs=gr.outputs.Image(shape=(128, 128),label='Imagen resultado'),examples=['00001.jpg','00002.jpg']).launch(share=False)
|