Spaces:
Paused
Paused
Upload index.html
Browse files- templates/index.html +79 -0
templates/index.html
ADDED
|
@@ -0,0 +1,79 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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>Hugging Face Uploader</title>
|
| 7 |
+
<link rel="stylesheet" href="{{ url_for('static', filename='css/style.css') }}">
|
| 8 |
+
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap" rel="stylesheet">
|
| 9 |
+
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css">
|
| 10 |
+
</head>
|
| 11 |
+
<body>
|
| 12 |
+
<div class="container">
|
| 13 |
+
<header class="header">
|
| 14 |
+
<div class="header-content">
|
| 15 |
+
<div class="logo">
|
| 16 |
+
<i class="fas fa-cloud-upload-alt"></i>
|
| 17 |
+
<h1>Hugging Face Uploader</h1>
|
| 18 |
+
</div>
|
| 19 |
+
<p class="subtitle">Upload files from Telegram to Hugging Face datasets</p>
|
| 20 |
+
</div>
|
| 21 |
+
</header>
|
| 22 |
+
|
| 23 |
+
<main class="main-content">
|
| 24 |
+
<div class="upload-card">
|
| 25 |
+
<div class="card-header">
|
| 26 |
+
<h2><i class="fas fa-file-upload"></i> File Upload</h2>
|
| 27 |
+
<p>Enter filenames to search and upload from Telegram channel</p>
|
| 28 |
+
</div>
|
| 29 |
+
|
| 30 |
+
<form id="uploadForm" class="upload-form">
|
| 31 |
+
<div class="input-group">
|
| 32 |
+
<label for="filenames">Filenames (comma or newline separated)</label>
|
| 33 |
+
<textarea
|
| 34 |
+
id="filenames"
|
| 35 |
+
name="filenames"
|
| 36 |
+
placeholder="e.g. report.pdf summary.docx meeting_notes.txt"
|
| 37 |
+
rows="6"
|
| 38 |
+
required
|
| 39 |
+
></textarea>
|
| 40 |
+
<div class="input-hint">
|
| 41 |
+
<i class="fas fa-info-circle"></i>
|
| 42 |
+
Separate multiple filenames with commas or new lines
|
| 43 |
+
</div>
|
| 44 |
+
</div>
|
| 45 |
+
|
| 46 |
+
<button type="submit" class="upload-btn" id="uploadBtn">
|
| 47 |
+
<span class="btn-text">
|
| 48 |
+
<i class="fas fa-upload"></i>
|
| 49 |
+
Start Upload
|
| 50 |
+
</span>
|
| 51 |
+
<div class="loading-spinner" style="display: none;">
|
| 52 |
+
<i class="fas fa-spinner fa-spin"></i>
|
| 53 |
+
Processing...
|
| 54 |
+
</div>
|
| 55 |
+
</button>
|
| 56 |
+
</form>
|
| 57 |
+
|
| 58 |
+
<div class="results-section" id="resultsSection" style="display: none;">
|
| 59 |
+
<div class="results-header">
|
| 60 |
+
<h3><i class="fas fa-list-check"></i> Upload Results</h3>
|
| 61 |
+
<button class="clear-btn" id="clearBtn">
|
| 62 |
+
<i class="fas fa-trash"></i>
|
| 63 |
+
Clear
|
| 64 |
+
</button>
|
| 65 |
+
</div>
|
| 66 |
+
<div class="results-content" id="resultsContent"></div>
|
| 67 |
+
</div>
|
| 68 |
+
</div>
|
| 69 |
+
</main>
|
| 70 |
+
|
| 71 |
+
<footer class="footer">
|
| 72 |
+
<p>© 2024 Hugging Face Uploader. Built with Flask.</p>
|
| 73 |
+
</footer>
|
| 74 |
+
</div>
|
| 75 |
+
|
| 76 |
+
<script src="{{ url_for('static', filename='js/script.js') }}"></script>
|
| 77 |
+
</body>
|
| 78 |
+
</html>
|
| 79 |
+
|