| <!DOCTYPE html> |
| <html> |
| <head> |
| <title>Iris Predictor</title> |
| <link rel="stylesheet" href="{{ url_for('static', filename='flower-animation.css') }}"> |
| <style> |
| body { |
| font-family: Arial, sans-serif; |
| max-width: 600px; |
| margin: 0 auto; |
| padding: 20px; |
| background-color: #f5f5f5; |
| position: relative; |
| min-height: 100vh; |
| } |
| |
| .video-background { |
| position: fixed; |
| top: 0; |
| left: 0; |
| width: 100%; |
| height: 100%; |
| z-index: -1; |
| overflow: hidden; |
| } |
| |
| .video-background video { |
| width: 100%; |
| height: 100%; |
| object-fit: cover; |
| opacity: 0.3; |
| } |
| |
| .video-background::after { |
| content: ''; |
| position: absolute; |
| top: 0; |
| left: 0; |
| width: 100%; |
| height: 100%; |
| background: rgba(255, 255, 255, 0.7); |
| } |
| h2 { |
| color: #4CAF50; |
| text-align: center; |
| } |
| form { |
| background-color: rgba(255, 255, 255, 0.95); |
| padding: 20px; |
| border-radius: 10px; |
| box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2); |
| backdrop-filter: blur(10px); |
| border: 1px solid rgba(255, 255, 255, 0.2); |
| } |
| input[type="text"] { |
| width: 100%; |
| padding: 10px; |
| margin: 8px 0; |
| display: inline-block; |
| border: 1px solid #ccc; |
| border-radius: 4px; |
| box-sizing: border-box; |
| } |
| input[type="submit"] { |
| width: 100%; |
| background-color: #4CAF50; |
| color: white; |
| padding: 14px 20px; |
| margin: 8px 0; |
| border: none; |
| border-radius: 4px; |
| cursor: pointer; |
| } |
| input[type="submit"]:hover { |
| background-color: #45a049; |
| } |
| .note { |
| margin-top: 20px; |
| font-size: 0.9em; |
| color: #666; |
| background-color: rgba(255, 255, 255, 0.9); |
| padding: 15px; |
| border-radius: 8px; |
| box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); |
| } |
| |
| .flower-animation { |
| position: absolute; |
| top: 20px; |
| right: 20px; |
| width: 60px; |
| height: 60px; |
| background: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNjAiIGhlaWdodD0iNjAiIHZpZXdCb3g9IjAgMCA2MCA2MCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGNpcmNsZSBjeD0iMzAiIGN5PSIzMCIgcj0iOCIgZmlsbD0iI0ZGRjIwMCIvPgo8cGF0aCBkPSJNMjIgMzBDMjIgMzQuNDE4IDI1LjU4MiAzOCAzMCAzOEMzNC40MTggMzggMzggMzQuNDE4IDM4IDMwIiBzdHJva2U9IiNGRjY5QjQiIHN0cm9rZS13aWR0aD0iNCIvPgo8cGF0aCBkPSJNMzAgMjJDMjUuNTgyIDIyIDIyIDI1LjU4MiAyMiAzMCIgc3Ryb2tlPSIjRkY2OUI0IiBzdHJva2Utd2lkdGg9IjQiLz4KPHBhdGggZD0iTTM4IDMwQzM4IDI1LjU4MiAzNC40MTggMjIgMzAgMjIiIHN0cm9rZT0iI0ZGNjlCNCIgc3Ryb2tlLXdpZHRoPSI0Ii8+CjxwYXRoIGQ9Ik0zMCAzOEMzNCA0MiAzNyA0MiAzOSA0MiIgc3Ryb2tlPSIjNENBRjUwIiBzdHJva2Utd2lkdGg9IjMiLz4KPC9zdmc+') no-repeat center center; |
| background-size: contain; |
| animation: rotate 3s linear infinite; |
| } |
| |
| @keyframes rotate { |
| 0% { transform: rotate(0deg); } |
| 100% { transform: rotate(360deg); } |
| } |
| |
| .floating-flowers { |
| position: fixed; |
| top: 0; |
| left: 0; |
| width: 100%; |
| height: 100%; |
| pointer-events: none; |
| z-index: -1; |
| } |
| |
| .floating-flowers::before { |
| content: '🌸'; |
| position: absolute; |
| top: 20%; |
| left: 10%; |
| font-size: 2em; |
| animation: float 6s ease-in-out infinite; |
| } |
| |
| .floating-flowers::after { |
| content: '🌺'; |
| position: absolute; |
| top: 60%; |
| right: 15%; |
| font-size: 1.5em; |
| animation: float 4s ease-in-out infinite reverse; |
| } |
| |
| @keyframes float { |
| 0%, 100% { transform: translateY(0px); } |
| 50% { transform: translateY(-20px); } |
| } |
| </style> |
| </head> |
| <body> |
| |
| <div class="video-background"> |
| <video autoplay muted loop> |
| <source src="{{ url_for('static', filename='videos/flowers.mp4') }}" type="video/mp4"> |
| <source src="https://cdn.pixabay.com/video/2019/06/10/24170-342584456_large.mp4" type="video/mp4"> |
| |
| <source src="https://media.giphy.com/media/3o7TKQkJJj8PJMJJhK/giphy.gif" type="video/gif"> |
| </video> |
| </div> |
| |
| |
| <div class="flower-background"></div> |
| |
| |
| <div class="floating-flowers"></div> |
| <div class="flower-extra"></div> |
| <div class="flower-extra2"></div> |
| |
| |
| <div class="flower-animation"></div> |
| |
| <h2>🌸 Iris Flower Prediction 🌸</h2> |
| <form action="/predict" method="POST"> |
| <input type="text" name="sepal_length" placeholder="Sepal Length (cm)" required><br> |
| <input type="text" name="sepal_width" placeholder="Sepal Width (cm)" required><br> |
| <input type="text" name="petal_length" placeholder="Petal Length (cm)" required><br> |
| <input type="text" name="petal_width" placeholder="Petal Width (cm)" required><br> |
| <input type="submit" value="Predict Flower Species"> |
| </form> |
| <div class="note"> |
| <p><strong>Example values:</strong></p> |
| <p>Setosa: Sepal Length=5.1, Sepal Width=3.5, Petal Length=1.4, Petal Width=0.2</p> |
| <p>Versicolor: Sepal Length=6.0, Sepal Width=2.7, Petal Length=4.2, Petal Width=1.3</p> |
| <p>Virginica: Sepal Length=6.8, Sepal Width=3.0, Petal Length=5.5, Petal Width=2.1</p> |
| </div> |
| </body> |
| </html> |
|
|