Spaces:
Sleeping
Sleeping
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>Predicci贸n de Im谩genes</title> | |
| </head> | |
| <body> | |
| <h1>Sube una imagen para predecir</h1> | |
| <form action="/" method="post" enctype="multipart/form-data"> | |
| <input type="file" name="file" accept="image/*" required> | |
| <br> | |
| <input type="submit" value="Predecir"> | |
| </form> | |
| <br> | |
| {% if prediction %} | |
| <h2>Resultado de la Predicci贸n:</h2> | |
| <p>Clase: {{ prediction['predicted_class'] }}</p> | |
| <p>Probabilidad: {{ prediction['probability'] }}%</p> | |
| <img src="{{ image_path }}" alt="Imagen Cargada"> | |
| <!-- <p>{{ image_path }}</p> --> | |
| {% endif %} | |
| </body> | |
| </html> |