Spaces:
Sleeping
Sleeping
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <title>Detected Results</title> | |
| <link rel="icon" href="/static/favicon.ico" type="image/x-icon"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <style> | |
| body { | |
| margin: 0; | |
| background-color: #1e1e1e; | |
| color: #e0e0e0; | |
| font-family: Arial, sans-serif; | |
| display: flex; | |
| flex-direction: column; | |
| align-items: center; | |
| padding: 40px 20px; | |
| min-height: 100vh; | |
| box-sizing: border-box; | |
| } | |
| .title { | |
| font-size: 18px; | |
| color: #a0ffaf; | |
| margin-bottom: 30px; | |
| text-align: center; | |
| } | |
| .grid { | |
| display: grid; | |
| grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); | |
| gap: 20px; | |
| width: 100%; | |
| max-width: 900px; | |
| justify-items: center; | |
| } | |
| .item { | |
| background-color: #2a2a2a; | |
| padding: 10px; | |
| text-align: center; | |
| border: 1px solid #444; | |
| border-radius: 4px; | |
| width: 100%; | |
| max-width: 220px; | |
| } | |
| img { | |
| max-width: 100%; | |
| height: auto; | |
| background-color: #111; | |
| } | |
| .btn { | |
| margin-top: 10px; | |
| padding: 8px 18px; | |
| background-color: #3e8e41; | |
| color: white; | |
| border: none; | |
| cursor: pointer; | |
| border-radius: 4px; | |
| text-decoration: none; | |
| display: inline-block; | |
| } | |
| .btn:hover { | |
| background-color: #367635; | |
| } | |
| .finalize { | |
| margin-top: 40px; | |
| font-size: 16px; | |
| } | |
| form { | |
| display: flex; | |
| justify-content: center; | |
| width: 100%; | |
| } | |
| </style> | |
| </head> | |
| <body> | |
| <div class="title">Detected objects: please, download what you need</div> | |
| <div class="grid"> | |
| {% for path in result_paths %} | |
| <div class="item"> | |
| <img src="{{ '/' + path }}" alt="Segmented Object"> | |
| <a href="{{ '/' + path }}" download class="btn">Download</a> | |
| </div> | |
| {% endfor %} | |
| </div> | |
| <form action="/finalize" method="post" class="finalize"> | |
| <input type="hidden" name="session_id" value="{{ session_id }}"> | |
| <input type="submit" class="btn" value="Finalize and Clear Session"> | |
| </form> | |
| </body> | |
| </html> | |