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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -6,7 +6,7 @@ model = tf.keras.models.load_model("hf://JaviSwift/cifar10_simple")
6
 
7
  def predict_image(img):
8
  """
9
- Realiza la predicci贸n sobre la imagen dada usando el modelo Keras.
10
  """
11
 
12
  img = tf.image.resize(img, (32, 32))
@@ -24,10 +24,10 @@ def predict_image(img):
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()
 
6
 
7
  def predict_image(img):
8
  """
9
+ Makes a prediction of the image descripton
10
  """
11
 
12
  img = tf.image.resize(img, (32, 32))
 
24
 
25
  iface = gr.Interface(
26
  fn=predict_image,
27
+ inputs=gr.Image(label="Upload an image"),
28
+ outputs=gr.Label(label="Result"),
29
+ title="Image description predictor",
30
+ description="Upload an image and it will make a description of the object"
31
  )
32
 
33
  iface.launch()