Spaces:
				
			
			
	
			
			
		Runtime error
		
	
	
	
			
			
	
	
	
	
		
		
		Runtime error
		
	Commit 
							
							·
						
						dae0f49
	
1
								Parent(s):
							
							769fb6f
								
meu HTML para minha UI
Browse files- templates/index.html +74 -0
    	
        templates/index.html
    ADDED
    
    | @@ -0,0 +1,74 @@ | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | 
|  | |
| 1 | 
            +
            <!DOCTYPE html>
         | 
| 2 | 
            +
            <html>
         | 
| 3 | 
            +
            <head>
         | 
| 4 | 
            +
                <meta charset="utf-8" />
         | 
| 5 | 
            +
                <meta http-equiv="X-UA-Compatible" content="IE=edge">
         | 
| 6 | 
            +
                <title>OpenCV: Facial and Smile</title>
         | 
| 7 | 
            +
                <meta name="viewport" content="width=device-width, initial-scale=1">
         | 
| 8 | 
            +
                <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css" integrity="sha384-MCw98/SFnGE8fJT3GXwEOngsV7Zt27NXFoaoApmYm81iuXoPkFOJwJ8ERdknLPMO"
         | 
| 9 | 
            +
                crossorigin="anonymous">
         | 
| 10 | 
            +
                <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css">
         | 
| 11 | 
            +
            </head>
         | 
| 12 | 
            +
            <body>
         | 
| 13 | 
            +
            <!--
         | 
| 14 | 
            +
                <nav class="navbar navbar-expand-md navbar-dark fixed-top bg-dark">
         | 
| 15 | 
            +
                    <a class="navbar-brand" href="/">Reconhecimento Facial e detecção de sorriso</a>
         | 
| 16 | 
            +
                    <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarsExampleDefault" aria-controls="navbarsExampleDefault" aria-expanded="false" aria-label="Toggle navigation">
         | 
| 17 | 
            +
                        <span class="navbar-toggler-icon"></span>
         | 
| 18 | 
            +
                    </button>
         | 
| 19 | 
            +
             | 
| 20 | 
            +
             | 
| 21 | 
            +
                    <div class="collapse navbar-collapse" id="navbarsExampleDefault">
         | 
| 22 | 
            +
                        <ul class="navbar-nav mr-auto">
         | 
| 23 | 
            +
                            <li class="nav-item active">
         | 
| 24 | 
            +
                                <a class="nav-link" href="/">Home <span class="sr-only">(current)</span></a>
         | 
| 25 | 
            +
                            </li>
         | 
| 26 | 
            +
                            <li class="nav-item">
         | 
| 27 | 
            +
                                <a class="nav-link" href="#">About</a>
         | 
| 28 | 
            +
                            </li>
         | 
| 29 | 
            +
                        </ul>
         | 
| 30 | 
            +
                        <form class="form-inline my-2 my-lg-0">
         | 
| 31 | 
            +
                            <input class="form-control mr-sm-2" type="text" placeholder="Search" aria-label="Search">
         | 
| 32 | 
            +
                            <button class="btn btn-outline-success my-2 my-sm-0" type="submit">Search</button>
         | 
| 33 | 
            +
                        </form>
         | 
| 34 | 
            +
                    </div>
         | 
| 35 | 
            +
             | 
| 36 | 
            +
             | 
| 37 | 
            +
                </nav>
         | 
| 38 | 
            +
            -->
         | 
| 39 | 
            +
             | 
| 40 | 
            +
                <div class="container mt-5">
         | 
| 41 | 
            +
                    <h1 class="text-center font-weight-bold">🤗 Reconhecimento Facial e detecção de sorriso 🤗</h1>
         | 
| 42 | 
            +
             | 
| 43 | 
            +
                    <div id="autor-info" class="text-center mt-3">
         | 
| 44 | 
            +
                        <p><span style="color: rgb(222, 38, 21);">Data Scientist:</span> Dr. Eddy Giusepe Chirinos Isidro</p>
         | 
| 45 | 
            +
                        <p><span style="color: rgb(222, 38, 14);">Email:</span> eddychirinos.unac@gmail.com</p>
         | 
| 46 | 
            +
                        <p><span style="color: rgb(222, 38, 14);">GitHub:</span> <a href="https://github.com/EddyGiusepe" target="_blank">https://github.com/EddyGiusepe</a></p>
         | 
| 47 | 
            +
                        <p><span style="color: rgb(222, 38, 14);">LinkedIn:</span> <a href="https://www.linkedin.com/in/eddy-giusepe-chirinos-isidro-85a43a42/" target="_blank">https://www.linkedin.com/in/eddy-giusepe-chirinos-isidro-85a43a42/</a></p>
         | 
| 48 | 
            +
                    </div>
         | 
| 49 | 
            +
             | 
| 50 | 
            +
                    <form method="POST" action="/upload" enctype="multipart/form-data">
         | 
| 51 | 
            +
                        <div class="form-group">
         | 
| 52 | 
            +
                            <label for="file">Escolha sua Imagem para detectar a Face e o Sorriso (.jpg | .jpeg | .png | .gif)</label>
         | 
| 53 | 
            +
                            <input type="file" class="form-control-file" name="file" accept=".jpg, .jpeg, .png, .gif" required>
         | 
| 54 | 
            +
                        </div>
         | 
| 55 | 
            +
                        <button type="submit" class="btn btn-primary"><i class="fa fa-upload"></i> Enviar a Imagem selecionada</button>
         | 
| 56 | 
            +
                    </form>
         | 
| 57 | 
            +
             | 
| 58 | 
            +
                    {% if error %}
         | 
| 59 | 
            +
                        <p class="text-danger mt-3">{{ error }}</p>
         | 
| 60 | 
            +
                    {% endif %}
         | 
| 61 | 
            +
             | 
| 62 | 
            +
                    {% if filename %}
         | 
| 63 | 
            +
                        <div class="mt-3">
         | 
| 64 | 
            +
                            <p class="font-weight-bold">Imagem com Detecção Facial e sorriso:</p>
         | 
| 65 | 
            +
                            <img src="{{ url_for('static', filename='images/' + filename) }}" class="img-fluid" alt="Imagem com Detecção Facial">
         | 
| 66 | 
            +
                        </div>
         | 
| 67 | 
            +
                    {% endif %}
         | 
| 68 | 
            +
                </div>
         | 
| 69 | 
            +
             | 
| 70 | 
            +
                <script src="https://code.jquery.com/jquery-3.3.1.slim.min.js" integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo" crossorigin="anonymous"></script>
         | 
| 71 | 
            +
                <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.6/umd/popper.min.js" integrity="sha384-wHAiFfRlMFy6i5SRaxvfOCifBUQy1xHdJ/yoi7FRNXMRBu5WHdZYu1hA6ZOblgut" crossorigin="anonymous"></script>
         | 
| 72 | 
            +
                <script src="https://stackpath.bootstrapcdn.com/bootstrap/4.2.1/js/bootstrap.min.js" integrity="sha384-B0UglyR+jN6CkvvICOB2joaf5I4l3gm9GU6Hc1og6Ls7i6U/mkkaduKaBhlAXv9k" crossorigin="anonymous"></script>
         | 
| 73 | 
            +
            </body>
         | 
| 74 | 
            +
            </html>
         | 
