Upload 3 files
Browse files- App.tsx +229 -0
- index.html +126 -0
- index.tsx +15 -0
App.tsx
ADDED
|
@@ -0,0 +1,229 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import React from 'react';
|
| 2 |
+
import { UploadStatus } from './types';
|
| 3 |
+
import { FileUploader } from './components/FileUploader';
|
| 4 |
+
import { UploadList } from './components/UploadList';
|
| 5 |
+
import { Upload, Rocket, Database, ShieldCheck, Zap, LayoutGrid, CheckCircle2, HelpCircle, Terminal } from 'lucide-react';
|
| 6 |
+
import { useFileUpload } from './hooks/useFileUpload';
|
| 7 |
+
|
| 8 |
+
export default function App() {
|
| 9 |
+
const {
|
| 10 |
+
files,
|
| 11 |
+
isUploading,
|
| 12 |
+
addFiles,
|
| 13 |
+
removeFile,
|
| 14 |
+
updateFilePath,
|
| 15 |
+
startUpload
|
| 16 |
+
} = useFileUpload();
|
| 17 |
+
|
| 18 |
+
const hasPendingFiles = files.some(f => f.status === UploadStatus.IDLE || f.status === UploadStatus.ERROR);
|
| 19 |
+
|
| 20 |
+
return (
|
| 21 |
+
<div className="min-h-screen bg-white font-sans selection:bg-indigo-100 selection:text-indigo-900">
|
| 22 |
+
|
| 23 |
+
{/* Decorative Background */}
|
| 24 |
+
<div className="fixed inset-0 z-0 pointer-events-none overflow-hidden">
|
| 25 |
+
<div className="absolute top-[-10%] left-[-10%] w-[40%] h-[40%] rounded-full bg-indigo-100/50 blur-[120px]" />
|
| 26 |
+
<div className="absolute bottom-[10%] right-[-5%] w-[30%] h-[30%] rounded-full bg-purple-100/50 blur-[100px]" />
|
| 27 |
+
</div>
|
| 28 |
+
|
| 29 |
+
{/* Navbar */}
|
| 30 |
+
<header className="fixed top-0 w-full z-50 glass-effect border-b border-gray-100/50">
|
| 31 |
+
<div className="max-w-6xl mx-auto px-6 h-16 flex items-center justify-between">
|
| 32 |
+
<div className="flex items-center gap-2">
|
| 33 |
+
<div className="bg-gradient-to-r from-indigo-600 to-violet-600 p-2 rounded-lg text-white">
|
| 34 |
+
<Rocket className="w-5 h-5" />
|
| 35 |
+
</div>
|
| 36 |
+
<span className="text-xl font-bold bg-clip-text text-transparent bg-gradient-to-r from-gray-900 to-gray-600">
|
| 37 |
+
DataTwan
|
| 38 |
+
</span>
|
| 39 |
+
</div>
|
| 40 |
+
<nav className="hidden md:flex items-center gap-8 text-sm font-medium text-gray-600">
|
| 41 |
+
<a href="#upload" className="hover:text-indigo-600 transition-colors">Upload</a>
|
| 42 |
+
<a href="#features" className="hover:text-indigo-600 transition-colors">Features</a>
|
| 43 |
+
<a href="#faq" className="hover:text-indigo-600 transition-colors">FAQ</a>
|
| 44 |
+
<a
|
| 45 |
+
href="https://huggingface.co/TwanAPI/DataTwan"
|
| 46 |
+
target="_blank"
|
| 47 |
+
rel="noreferrer"
|
| 48 |
+
className="px-4 py-2 rounded-full bg-gray-900 text-white hover:bg-gray-800 transition-colors"
|
| 49 |
+
>
|
| 50 |
+
View Repository
|
| 51 |
+
</a>
|
| 52 |
+
</nav>
|
| 53 |
+
</div>
|
| 54 |
+
</header>
|
| 55 |
+
|
| 56 |
+
<main className="relative z-10 pt-24 pb-20">
|
| 57 |
+
|
| 58 |
+
{/* Hero Section */}
|
| 59 |
+
<section className="max-w-4xl mx-auto px-6 text-center mb-16">
|
| 60 |
+
<div className="inline-flex items-center gap-2 px-3 py-1 rounded-full bg-indigo-50 border border-indigo-100 text-indigo-600 text-xs font-semibold uppercase tracking-wide mb-6">
|
| 61 |
+
<span className="w-2 h-2 rounded-full bg-indigo-500 animate-pulse" />
|
| 62 |
+
V2.0 is Live: Faster Uploads
|
| 63 |
+
</div>
|
| 64 |
+
<h1 className="text-4xl md:text-6xl font-extrabold text-gray-900 tracking-tight mb-6">
|
| 65 |
+
The Ultimate <span className="text-transparent bg-clip-text bg-gradient-to-r from-indigo-600 to-violet-600">Hugging Face</span> Dataset Uploader
|
| 66 |
+
</h1>
|
| 67 |
+
<p className="text-lg md:text-xl text-gray-600 mb-8 max-w-2xl mx-auto leading-relaxed">
|
| 68 |
+
Drag, drop, and deploy your machine learning datasets securely to the cloud.
|
| 69 |
+
Optimized for large files, bulk processing, and ease of use.
|
| 70 |
+
</p>
|
| 71 |
+
</section>
|
| 72 |
+
|
| 73 |
+
{/* Upload Container */}
|
| 74 |
+
<section id="upload" className="max-w-3xl mx-auto px-6 mb-24">
|
| 75 |
+
<div className="bg-white/80 backdrop-blur-xl rounded-3xl shadow-2xl border border-white/20 ring-1 ring-black/5 p-2 md:p-8">
|
| 76 |
+
|
| 77 |
+
{/* File Uploader Component */}
|
| 78 |
+
<div className="mb-8">
|
| 79 |
+
<FileUploader
|
| 80 |
+
onFilesAdded={addFiles}
|
| 81 |
+
disabled={isUploading}
|
| 82 |
+
/>
|
| 83 |
+
</div>
|
| 84 |
+
|
| 85 |
+
{/* Queue List */}
|
| 86 |
+
<div className="mb-6">
|
| 87 |
+
<UploadList
|
| 88 |
+
files={files}
|
| 89 |
+
onRemove={removeFile}
|
| 90 |
+
onPathChange={updateFilePath}
|
| 91 |
+
/>
|
| 92 |
+
</div>
|
| 93 |
+
|
| 94 |
+
{/* Action Button */}
|
| 95 |
+
{files.length > 0 && (
|
| 96 |
+
<div className="flex justify-end">
|
| 97 |
+
<button
|
| 98 |
+
onClick={startUpload}
|
| 99 |
+
disabled={!hasPendingFiles || isUploading}
|
| 100 |
+
className={`
|
| 101 |
+
group relative overflow-hidden flex items-center gap-3 px-8 py-4 rounded-xl font-bold shadow-lg transition-all duration-300
|
| 102 |
+
${!hasPendingFiles || isUploading
|
| 103 |
+
? 'bg-gray-100 text-gray-400 cursor-not-allowed'
|
| 104 |
+
: 'bg-gradient-to-r from-indigo-600 to-violet-600 text-white hover:shadow-indigo-200 hover:shadow-xl hover:-translate-y-1 active:translate-y-0'}
|
| 105 |
+
`}
|
| 106 |
+
>
|
| 107 |
+
{isUploading ? (
|
| 108 |
+
<>
|
| 109 |
+
<div className="absolute inset-0 bg-white/20 animate-[shimmer_2s_infinite]" />
|
| 110 |
+
<Rocket className="w-5 h-5 animate-spin" />
|
| 111 |
+
<span>Processing Files...</span>
|
| 112 |
+
</>
|
| 113 |
+
) : (
|
| 114 |
+
<>
|
| 115 |
+
<Upload className="w-5 h-5 group-hover:scale-110 transition-transform" />
|
| 116 |
+
<span>Start Secure Upload</span>
|
| 117 |
+
</>
|
| 118 |
+
)}
|
| 119 |
+
</button>
|
| 120 |
+
</div>
|
| 121 |
+
)}
|
| 122 |
+
</div>
|
| 123 |
+
</section>
|
| 124 |
+
|
| 125 |
+
{/* SEO Content: Features */}
|
| 126 |
+
<section id="features" className="max-w-6xl mx-auto px-6 py-16">
|
| 127 |
+
<div className="text-center mb-12">
|
| 128 |
+
<h2 className="text-3xl font-bold text-gray-900">Why use DataTwan?</h2>
|
| 129 |
+
<p className="text-gray-500 mt-2">Built for Data Scientists and ML Engineers</p>
|
| 130 |
+
</div>
|
| 131 |
+
|
| 132 |
+
<div className="grid md:grid-cols-3 gap-8">
|
| 133 |
+
<div className="p-6 bg-white rounded-2xl shadow-sm border border-gray-100 hover:shadow-md transition-shadow">
|
| 134 |
+
<div className="w-12 h-12 bg-blue-50 rounded-xl flex items-center justify-center mb-4 text-blue-600">
|
| 135 |
+
<ShieldCheck className="w-6 h-6" />
|
| 136 |
+
</div>
|
| 137 |
+
<h3 className="text-lg font-bold text-gray-900 mb-2">Secure API Proxy</h3>
|
| 138 |
+
<p className="text-gray-600 text-sm leading-relaxed">
|
| 139 |
+
Your files are routed through a secure backend proxy. Credentials are never exposed to the client-side browser, ensuring maximum security for your repositories.
|
| 140 |
+
</p>
|
| 141 |
+
</div>
|
| 142 |
+
|
| 143 |
+
<div className="p-6 bg-white rounded-2xl shadow-sm border border-gray-100 hover:shadow-md transition-shadow">
|
| 144 |
+
<div className="w-12 h-12 bg-purple-50 rounded-xl flex items-center justify-center mb-4 text-purple-600">
|
| 145 |
+
<Zap className="w-6 h-6" />
|
| 146 |
+
</div>
|
| 147 |
+
<h3 className="text-lg font-bold text-gray-900 mb-2">Lightning Fast</h3>
|
| 148 |
+
<p className="text-gray-600 text-sm leading-relaxed">
|
| 149 |
+
Optimized for speed. Our bulk upload algorithm handles multiple files simultaneously, reducing the time it takes to push your datasets to Hugging Face.
|
| 150 |
+
</p>
|
| 151 |
+
</div>
|
| 152 |
+
|
| 153 |
+
<div className="p-6 bg-white rounded-2xl shadow-sm border border-gray-100 hover:shadow-md transition-shadow">
|
| 154 |
+
<div className="w-12 h-12 bg-indigo-50 rounded-xl flex items-center justify-center mb-4 text-indigo-600">
|
| 155 |
+
<Terminal className="w-6 h-6" />
|
| 156 |
+
</div>
|
| 157 |
+
<h3 className="text-lg font-bold text-gray-900 mb-2">Auto-Formatting</h3>
|
| 158 |
+
<p className="text-gray-600 text-sm leading-relaxed">
|
| 159 |
+
Automatic filename sanitization. Timestamps are added, and special characters are converted to English slugs to ensure compatibility with Linux/Unix systems.
|
| 160 |
+
</p>
|
| 161 |
+
</div>
|
| 162 |
+
</div>
|
| 163 |
+
</section>
|
| 164 |
+
|
| 165 |
+
{/* SEO Content: FAQ */}
|
| 166 |
+
<section id="faq" className="max-w-4xl mx-auto px-6 py-16 bg-gray-50 rounded-3xl my-12">
|
| 167 |
+
<div className="text-center mb-10">
|
| 168 |
+
<h2 className="text-3xl font-bold text-gray-900">Frequently Asked Questions</h2>
|
| 169 |
+
</div>
|
| 170 |
+
<div className="space-y-4">
|
| 171 |
+
<details className="group bg-white rounded-xl shadow-sm border border-gray-200">
|
| 172 |
+
<summary className="flex justify-between items-center font-medium cursor-pointer list-none p-6 text-gray-900">
|
| 173 |
+
<span>Is this tool free to use?</span>
|
| 174 |
+
<span className="transition group-open:rotate-180">
|
| 175 |
+
<HelpCircle className="w-5 h-5 text-gray-400" />
|
| 176 |
+
</span>
|
| 177 |
+
</summary>
|
| 178 |
+
<div className="text-gray-600 px-6 pb-6 text-sm leading-relaxed border-t border-gray-100 pt-4">
|
| 179 |
+
Yes, DataTwan Uploader is 100% free. It utilizes the standard Hugging Face API to manage your datasets without any hidden costs.
|
| 180 |
+
</div>
|
| 181 |
+
</details>
|
| 182 |
+
|
| 183 |
+
<details className="group bg-white rounded-xl shadow-sm border border-gray-200">
|
| 184 |
+
<summary className="flex justify-between items-center font-medium cursor-pointer list-none p-6 text-gray-900">
|
| 185 |
+
<span>What types of files can I upload?</span>
|
| 186 |
+
<span className="transition group-open:rotate-180">
|
| 187 |
+
<HelpCircle className="w-5 h-5 text-gray-400" />
|
| 188 |
+
</span>
|
| 189 |
+
</summary>
|
| 190 |
+
<div className="text-gray-600 px-6 pb-6 text-sm leading-relaxed border-t border-gray-100 pt-4">
|
| 191 |
+
You can upload any file type supported by Hugging Face (JSON, CSV, Parquet, Images, Text, etc.). The tool automatically sanitizes filenames to prevent errors.
|
| 192 |
+
</div>
|
| 193 |
+
</details>
|
| 194 |
+
|
| 195 |
+
<details className="group bg-white rounded-xl shadow-sm border border-gray-200">
|
| 196 |
+
<summary className="flex justify-between items-center font-medium cursor-pointer list-none p-6 text-gray-900">
|
| 197 |
+
<span>Where are my files stored?</span>
|
| 198 |
+
<span className="transition group-open:rotate-180">
|
| 199 |
+
<HelpCircle className="w-5 h-5 text-gray-400" />
|
| 200 |
+
</span>
|
| 201 |
+
</summary>
|
| 202 |
+
<div className="text-gray-600 px-6 pb-6 text-sm leading-relaxed border-t border-gray-100 pt-4">
|
| 203 |
+
Files are uploaded directly to the <strong>TwanAPI/DataTwan</strong> repository on Hugging Face. We do not store your files on our servers; they are streamed directly to the destination.
|
| 204 |
+
</div>
|
| 205 |
+
</details>
|
| 206 |
+
</div>
|
| 207 |
+
</section>
|
| 208 |
+
|
| 209 |
+
</main>
|
| 210 |
+
|
| 211 |
+
{/* Footer */}
|
| 212 |
+
<footer className="bg-gray-900 text-gray-400 py-12 border-t border-gray-800">
|
| 213 |
+
<div className="max-w-6xl mx-auto px-6 flex flex-col md:flex-row justify-between items-center gap-6">
|
| 214 |
+
<div className="flex items-center gap-2">
|
| 215 |
+
<Rocket className="w-5 h-5 text-indigo-500" />
|
| 216 |
+
<span className="text-white font-bold text-lg">DataTwan</span>
|
| 217 |
+
</div>
|
| 218 |
+
<div className="text-sm">
|
| 219 |
+
© {new Date().getFullYear()} DataTwan. All rights reserved.
|
| 220 |
+
</div>
|
| 221 |
+
<div className="flex gap-6">
|
| 222 |
+
<a href="#" className="hover:text-white transition-colors">Privacy Policy</a>
|
| 223 |
+
<a href="#" className="hover:text-white transition-colors">Terms of Service</a>
|
| 224 |
+
</div>
|
| 225 |
+
</div>
|
| 226 |
+
</footer>
|
| 227 |
+
</div>
|
| 228 |
+
);
|
| 229 |
+
}
|
index.html
ADDED
|
@@ -0,0 +1,126 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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 |
+
|
| 7 |
+
<!-- Primary SEO Meta Tags -->
|
| 8 |
+
<title>DataTwan - Free Hugging Face Dataset Uploader | Bulk Upload Tool</title>
|
| 9 |
+
<meta name="description" content="The best free tool to bulk upload datasets to Hugging Face. Secure, fast, and unlimited file support. Manage your AI/ML datasets with DataTwan Uploader." />
|
| 10 |
+
<meta name="keywords" content="Hugging Face uploader, dataset upload, DataTwan, machine learning datasets, AI data management, bulk file upload, Hugging Face API, drag and drop upload" />
|
| 11 |
+
<meta name="author" content="DataTwan" />
|
| 12 |
+
<meta name="robots" content="index, follow" />
|
| 13 |
+
<link rel="canonical" href="https://datatwan-uploader.com/" />
|
| 14 |
+
|
| 15 |
+
<!-- Open Graph / Facebook -->
|
| 16 |
+
<meta property="og:type" content="website" />
|
| 17 |
+
<meta property="og:url" content="https://datatwan-uploader.com/" />
|
| 18 |
+
<meta property="og:title" content="DataTwan - Ultimate Hugging Face Dataset Uploader" />
|
| 19 |
+
<meta property="og:description" content="Upload massive datasets to Hugging Face efficiently. No command line needed. Secure and free." />
|
| 20 |
+
<meta property="og:site_name" content="DataTwan Uploader" />
|
| 21 |
+
|
| 22 |
+
<!-- Twitter -->
|
| 23 |
+
<meta property="twitter:card" content="summary_large_image" />
|
| 24 |
+
<meta property="twitter:title" content="DataTwan - Hugging Face Dataset Uploader" />
|
| 25 |
+
<meta property="twitter:description" content="Upload datasets efficiently to Hugging Face with DataTwan. Secure and fast bulk uploading." />
|
| 26 |
+
|
| 27 |
+
<!-- Structured Data for Google (JSON-LD) -->
|
| 28 |
+
<script type="application/ld+json">
|
| 29 |
+
{
|
| 30 |
+
"@context": "https://schema.org",
|
| 31 |
+
"@graph": [
|
| 32 |
+
{
|
| 33 |
+
"@type": "WebApplication",
|
| 34 |
+
"name": "DataTwan Uploader",
|
| 35 |
+
"url": "https://datatwan-uploader.com",
|
| 36 |
+
"description": "A professional tool to upload files directly to Hugging Face repositories via secure API.",
|
| 37 |
+
"applicationCategory": "DeveloperApplication",
|
| 38 |
+
"operatingSystem": "Web Browser",
|
| 39 |
+
"offers": {
|
| 40 |
+
"@type": "Offer",
|
| 41 |
+
"price": "0",
|
| 42 |
+
"priceCurrency": "USD"
|
| 43 |
+
}
|
| 44 |
+
},
|
| 45 |
+
{
|
| 46 |
+
"@type": "FAQPage",
|
| 47 |
+
"mainEntity": [
|
| 48 |
+
{
|
| 49 |
+
"@type": "Question",
|
| 50 |
+
"name": "How do I upload a dataset to Hugging Face?",
|
| 51 |
+
"acceptedAnswer": {
|
| 52 |
+
"@type": "Answer",
|
| 53 |
+
"text": "Simply drag and drop your files into DataTwan Uploader, rename them if necessary, and click 'Start Secure Upload'. Your files will be pushed directly to the DataTwan repository."
|
| 54 |
+
}
|
| 55 |
+
},
|
| 56 |
+
{
|
| 57 |
+
"@type": "Question",
|
| 58 |
+
"name": "Is DataTwan Uploader free?",
|
| 59 |
+
"acceptedAnswer": {
|
| 60 |
+
"@type": "Answer",
|
| 61 |
+
"text": "Yes, DataTwan Uploader is completely free to use for managing your machine learning datasets."
|
| 62 |
+
}
|
| 63 |
+
}
|
| 64 |
+
]
|
| 65 |
+
}
|
| 66 |
+
]
|
| 67 |
+
}
|
| 68 |
+
</script>
|
| 69 |
+
|
| 70 |
+
<script src="https://cdn.tailwindcss.com"></script>
|
| 71 |
+
<link href="https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap" rel="stylesheet">
|
| 72 |
+
<style>
|
| 73 |
+
body {
|
| 74 |
+
font-family: 'Plus Jakarta Sans', sans-serif;
|
| 75 |
+
}
|
| 76 |
+
.glass-effect {
|
| 77 |
+
background: rgba(255, 255, 255, 0.7);
|
| 78 |
+
backdrop-filter: blur(10px);
|
| 79 |
+
-webkit-backdrop-filter: blur(10px);
|
| 80 |
+
}
|
| 81 |
+
.mesh-gradient {
|
| 82 |
+
background-color: #ffffff;
|
| 83 |
+
background-image: radial-gradient(at 0% 0%, hsla(253,16%,7%,1) 0, transparent 50%), radial-gradient(at 50% 0%, hsla(225,39%,30%,1) 0, transparent 50%), radial-gradient(at 100% 0%, hsla(339,49%,30%,1) 0, transparent 50%);
|
| 84 |
+
background-size: 100% 100%;
|
| 85 |
+
background-attachment: fixed;
|
| 86 |
+
}
|
| 87 |
+
/* Custom Scrollbar */
|
| 88 |
+
::-webkit-scrollbar {
|
| 89 |
+
width: 8px;
|
| 90 |
+
}
|
| 91 |
+
::-webkit-scrollbar-track {
|
| 92 |
+
background: #f1f1f1;
|
| 93 |
+
}
|
| 94 |
+
::-webkit-scrollbar-thumb {
|
| 95 |
+
background: #888;
|
| 96 |
+
border-radius: 4px;
|
| 97 |
+
}
|
| 98 |
+
::-webkit-scrollbar-thumb:hover {
|
| 99 |
+
background: #555;
|
| 100 |
+
}
|
| 101 |
+
</style>
|
| 102 |
+
<script type="importmap">
|
| 103 |
+
{
|
| 104 |
+
"imports": {
|
| 105 |
+
"react/": "https://aistudiocdn.com/react@^19.2.0/",
|
| 106 |
+
"react": "https://aistudiocdn.com/react@^19.2.0",
|
| 107 |
+
"react-dom/": "https://aistudiocdn.com/react-dom@^19.2.0/",
|
| 108 |
+
"lucide-react": "https://aistudiocdn.com/lucide-react@^0.555.0",
|
| 109 |
+
"vite": "https://aistudiocdn.com/vite@^7.2.4",
|
| 110 |
+
"@vitejs/plugin-react": "https://aistudiocdn.com/@vitejs/plugin-react@^5.1.1",
|
| 111 |
+
"@huggingface/hub": "https://aistudiocdn.com/@huggingface/hub@^2.7.1",
|
| 112 |
+
"express": "https://aistudiocdn.com/express@^5.1.0",
|
| 113 |
+
"cors": "https://aistudiocdn.com/cors@^2.8.5",
|
| 114 |
+
"multer": "https://aistudiocdn.com/multer@^2.0.2",
|
| 115 |
+
"path": "https://aistudiocdn.com/path@^0.12.7",
|
| 116 |
+
"url": "https://aistudiocdn.com/url@^0.11.4"
|
| 117 |
+
}
|
| 118 |
+
}
|
| 119 |
+
</script>
|
| 120 |
+
<link rel="stylesheet" href="/index.css">
|
| 121 |
+
</head>
|
| 122 |
+
<body class="bg-gray-50 text-gray-900 antialiased flex flex-col min-h-screen">
|
| 123 |
+
<div id="root" class="flex-grow"></div>
|
| 124 |
+
<script type="module" src="/index.tsx"></script>
|
| 125 |
+
</body>
|
| 126 |
+
</html>
|
index.tsx
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import React from 'react';
|
| 2 |
+
import ReactDOM from 'react-dom/client';
|
| 3 |
+
import App from './App';
|
| 4 |
+
|
| 5 |
+
const rootElement = document.getElementById('root');
|
| 6 |
+
if (!rootElement) {
|
| 7 |
+
throw new Error("Could not find root element to mount to");
|
| 8 |
+
}
|
| 9 |
+
|
| 10 |
+
const root = ReactDOM.createRoot(rootElement);
|
| 11 |
+
root.render(
|
| 12 |
+
<React.StrictMode>
|
| 13 |
+
<App />
|
| 14 |
+
</React.StrictMode>
|
| 15 |
+
);
|