JaviSwift commited on
Commit
04c17c3
·
verified ·
1 Parent(s): cc58f03

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -5
app.py CHANGED
@@ -22,13 +22,12 @@ def predict_image(img):
22
 
23
  return predicted_label
24
 
25
-
26
  iface = gr.Interface(
27
  fn=predict_image,
28
- inputs=gr.Image(shape=(32, 32), image_mode="RGB", source="upload", tool="editor"),
29
- outputs=gr.Label(num_top_classes=3),
30
- title="Clasificador de Imágenes con Keras",
31
- description="Cargue una imagen para clasificarla usando un modelo Keras entrenado en CIFAR-10."
32
  )
33
 
34
  iface.launch()
 
22
 
23
  return predicted_label
24
 
 
25
  iface = gr.Interface(
26
  fn=predict_image,
27
+ inputs=gr.Image(label="Sube una imagen"),
28
+ outputs=gr.Label(label="Resultado"),
29
+ title="Detector de Objetos con CNN",
30
+ description="Sube una imagen y el modelo CNN predecirá el objeto."
31
  )
32
 
33
  iface.launch()