Spaces:
Build error
Build error
Upload static/index.html with huggingface_hub
Browse files- static/index.html +49 -0
static/index.html
ADDED
|
@@ -0,0 +1,49 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<!DOCTYPE html>
|
| 2 |
+
<html lang="en">
|
| 3 |
+
<head>
|
| 4 |
+
<meta charset="UTF-8">
|
| 5 |
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
| 6 |
+
<title>CardProcessor-Pro | Batch Card Processing</title>
|
| 7 |
+
<link rel="stylesheet" href="/static/style.css">
|
| 8 |
+
<link rel="preconnect" href="https://fonts.googleapis.com">
|
| 9 |
+
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
| 10 |
+
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;800&display=swap" rel="stylesheet">
|
| 11 |
+
</head>
|
| 12 |
+
<body>
|
| 13 |
+
<div class="container">
|
| 14 |
+
<header>
|
| 15 |
+
<h1>CardProcessor<span class="highlight">-Pro</span></h1>
|
| 16 |
+
<p>Batch upload raw card images to automatically crop, upscale, and redact names.</p>
|
| 17 |
+
</header>
|
| 18 |
+
|
| 19 |
+
<main>
|
| 20 |
+
<div id="drop-zone" class="drop-zone">
|
| 21 |
+
<div class="drop-zone-content">
|
| 22 |
+
<svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="upload-icon"><path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"></path><polyline points="17 8 12 3 7 8"></polyline><line x1="12" y1="3" x2="12" y2="15"></line></svg>
|
| 23 |
+
<p class="drop-text">Drag & Drop images here, or <span>Browse</span></p>
|
| 24 |
+
<input type="file" id="file-input" multiple accept="image/*" hidden>
|
| 25 |
+
</div>
|
| 26 |
+
</div>
|
| 27 |
+
|
| 28 |
+
<div id="file-list" class="file-list hidden">
|
| 29 |
+
<h3>Selected Files (<span id="file-count">0</span>)</h3>
|
| 30 |
+
<ul id="files-preview"></ul>
|
| 31 |
+
<button id="process-btn" class="primary-btn">Process Images</button>
|
| 32 |
+
</div>
|
| 33 |
+
|
| 34 |
+
<div id="loading-state" class="loading-state hidden">
|
| 35 |
+
<div class="spinner"></div>
|
| 36 |
+
<p>Processing images using AI models... This may take a minute.</p>
|
| 37 |
+
</div>
|
| 38 |
+
|
| 39 |
+
<div id="result-state" class="result-state hidden">
|
| 40 |
+
<h3>✅ Processing Complete</h3>
|
| 41 |
+
<p>Your processed cards have been uniformly resized, upscaled, and redacted.</p>
|
| 42 |
+
<a id="download-btn" class="primary-btn download-btn">Download Final ZIP</a>
|
| 43 |
+
<button id="reset-btn" class="secondary-btn">Process More</button>
|
| 44 |
+
</div>
|
| 45 |
+
</main>
|
| 46 |
+
</div>
|
| 47 |
+
<script src="/static/script.js"></script>
|
| 48 |
+
</body>
|
| 49 |
+
</html>
|