Update app.py
Browse files
app.py
CHANGED
|
@@ -1,4 +1,4 @@
|
|
| 1 |
-
from icevision.all import
|
| 2 |
import torch
|
| 3 |
import gradio as gr
|
| 4 |
|
|
@@ -15,4 +15,4 @@ def predict(img):
|
|
| 15 |
return img
|
| 16 |
|
| 17 |
# Creamos la interfaz y la lanzamos.
|
| 18 |
-
gr.Interface(fn=predict, inputs=gr.inputs.Image(shape=(128, 128)), outputs=gr.outputs.Image(label='Imagen resultado'),examples=['00001.jpg','00002.jpg']).launch(share=False)
|
|
|
|
| 1 |
+
#from icevision.all import *
|
| 2 |
import torch
|
| 3 |
import gradio as gr
|
| 4 |
|
|
|
|
| 15 |
return img
|
| 16 |
|
| 17 |
# Creamos la interfaz y la lanzamos.
|
| 18 |
+
gr.Interface(fn=predict, inputs=gr.inputs.Image(shape=(128, 128)), outputs=gr.outputs.Image(type="pil",label='Imagen resultado'),examples=['00001.jpg','00002.jpg']).launch(share=False)
|