fireedman commited on
Commit
f779052
1 Parent(s): 3b5c288

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -3
app.py CHANGED
@@ -19,11 +19,18 @@ def predict_image(image):
19
 
20
  prediction = classifier.predict(image)
21
  return prediction[0]
22
-
 
 
 
 
 
 
23
  iface = gr.Interface(
24
  fn = predict_image,
25
- inputs = "image",
26
- outputs = "text"
 
27
  )
28
 
29
  iface.launch(debug=True)
 
19
 
20
  prediction = classifier.predict(image)
21
  return prediction[0]
22
+
23
+ imagenes_muestra =[
24
+ "knnExample/0.png"
25
+ "knnExample/5.png"
26
+ "knnExample/7.png"
27
+
28
+ ]
29
  iface = gr.Interface(
30
  fn = predict_image,
31
+ inputs = gr.inputs.Image(type = "file", label = "Sube tu Imagen o Selecciona una de Ejemplo"),#"image",
32
+ outputs = "text",
33
+ examples = imagenes_muestra
34
  )
35
 
36
  iface.launch(debug=True)