Spaces:
Sleeping
Sleeping
Delete index.html
Browse files- index.html +0 -91
index.html
DELETED
|
@@ -1,91 +0,0 @@
|
|
| 1 |
-
<!DOCTYPE html>
|
| 2 |
-
<html lang="en">
|
| 3 |
-
<head>
|
| 4 |
-
<meta charset="UTF-8" />
|
| 5 |
-
<title>AI Vision Captioning</title>
|
| 6 |
-
<style>
|
| 7 |
-
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600&display=swap');
|
| 8 |
-
* { margin: 0; padding: 0; box-sizing: border-box; }
|
| 9 |
-
body {
|
| 10 |
-
font-family: 'Poppins', sans-serif;
|
| 11 |
-
background: linear-gradient(135deg, #8b5cf6, #ec4899);
|
| 12 |
-
display: flex;
|
| 13 |
-
justify-content: center;
|
| 14 |
-
align-items: center;
|
| 15 |
-
min-height: 100vh;
|
| 16 |
-
padding: 2rem;
|
| 17 |
-
color: #1f2937;
|
| 18 |
-
}
|
| 19 |
-
.card {
|
| 20 |
-
background-color: #ffffff;
|
| 21 |
-
padding: 2.5rem 2rem;
|
| 22 |
-
border-radius: 1.5rem;
|
| 23 |
-
box-shadow: 0 16px 40px rgba(0, 0, 0, 0.15);
|
| 24 |
-
width: 100%;
|
| 25 |
-
max-width: 480px;
|
| 26 |
-
text-align: center;
|
| 27 |
-
}
|
| 28 |
-
h1 {
|
| 29 |
-
font-size: 1.8rem;
|
| 30 |
-
font-weight: 600;
|
| 31 |
-
margin-bottom: 1rem;
|
| 32 |
-
color: #4f46e5;
|
| 33 |
-
}
|
| 34 |
-
input[type="file"] {
|
| 35 |
-
margin: 1rem 0;
|
| 36 |
-
padding: 0.5rem;
|
| 37 |
-
border: 2px dashed #c7d2fe;
|
| 38 |
-
border-radius: 8px;
|
| 39 |
-
width: 100%;
|
| 40 |
-
background-color: #f3f4f6;
|
| 41 |
-
}
|
| 42 |
-
.btn {
|
| 43 |
-
background: linear-gradient(90deg, #4f46e5, #ec4899);
|
| 44 |
-
color: white;
|
| 45 |
-
padding: 0.7rem 1.6rem;
|
| 46 |
-
font-size: 1rem;
|
| 47 |
-
font-weight: bold;
|
| 48 |
-
border: none;
|
| 49 |
-
border-radius: 10px;
|
| 50 |
-
cursor: pointer;
|
| 51 |
-
margin-top: 1rem;
|
| 52 |
-
}
|
| 53 |
-
.result {
|
| 54 |
-
margin-top: 2rem;
|
| 55 |
-
background-color: #f9fafb;
|
| 56 |
-
padding: 1.2rem;
|
| 57 |
-
border-radius: 12px;
|
| 58 |
-
font-size: 1.1rem;
|
| 59 |
-
color: #374151;
|
| 60 |
-
box-shadow: 0 5px 15px rgba(0,0,0,0.06);
|
| 61 |
-
}
|
| 62 |
-
.caption-label {
|
| 63 |
-
font-weight: bold;
|
| 64 |
-
color: #7c3aed;
|
| 65 |
-
}
|
| 66 |
-
.preview-img {
|
| 67 |
-
margin-top: 1.5rem;
|
| 68 |
-
max-height: 240px;
|
| 69 |
-
border-radius: 1rem;
|
| 70 |
-
box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
|
| 71 |
-
}
|
| 72 |
-
</style>
|
| 73 |
-
</head>
|
| 74 |
-
<body>
|
| 75 |
-
<div class="card">
|
| 76 |
-
<h1>✨ AI Vision</h1>
|
| 77 |
-
<form action="/" enctype="multipart/form-data" method="post">
|
| 78 |
-
<input type="file" name="file" accept="image/*" required />
|
| 79 |
-
<button class="btn" type="submit">Generate Caption</button>
|
| 80 |
-
</form>
|
| 81 |
-
|
| 82 |
-
{% if caption %}
|
| 83 |
-
<img src="data:image/png;base64,{{ image_data }}" class="preview-img" />
|
| 84 |
-
<div class="result">
|
| 85 |
-
<span class="caption-label">Caption:</span>
|
| 86 |
-
<span>{{ caption }}</span>
|
| 87 |
-
</div>
|
| 88 |
-
{% endif %}
|
| 89 |
-
</div>
|
| 90 |
-
</body>
|
| 91 |
-
</html>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|