kirikir13 commited on
Commit
cbca455
·
verified ·
1 Parent(s): eab270e

You create a beautiful GUI and UI system that could facilitate and link up with this code here. Being functional and make sure everything has a spot a button knob for me and make sure that I have a spot to upload my own data. Training data. In the proper form, of course.

Browse files
Files changed (2) hide show
  1. README.md +8 -5
  2. index.html +231 -18
README.md CHANGED
@@ -1,10 +1,13 @@
1
  ---
2
- title: Ai Training Studio
3
- emoji: 🌖
4
- colorFrom: pink
5
- colorTo: red
6
  sdk: static
7
  pinned: false
 
 
8
  ---
9
 
10
- Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
 
1
  ---
2
+ title: AI Training Studio
3
+ colorFrom: gray
4
+ colorTo: green
5
+ emoji: 🐳
6
  sdk: static
7
  pinned: false
8
+ tags:
9
+ - deepsite-v3
10
  ---
11
 
12
+ # Welcome to your new DeepSite project!
13
+ This project was created with [DeepSite](https://deepsite.hf.co).
index.html CHANGED
@@ -1,19 +1,232 @@
1
- <!doctype html>
2
- <html>
3
- <head>
4
- <meta charset="utf-8" />
5
- <meta name="viewport" content="width=device-width" />
6
- <title>My static Space</title>
7
- <link rel="stylesheet" href="style.css" />
8
- </head>
9
- <body>
10
- <div class="card">
11
- <h1>Welcome to your static Space!</h1>
12
- <p>You can modify this app directly by editing <i>index.html</i> in the Files and versions tab.</p>
13
- <p>
14
- Also don't forget to check the
15
- <a href="https://huggingface.co/docs/hub/spaces" target="_blank">Spaces documentation</a>.
16
- </p>
17
- </div>
18
- </body>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
19
  </html>
 
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>AI Training Studio</title>
7
+ <script src="https://cdn.tailwindcss.com"></script>
8
+ <script src="https://unpkg.com/feather-icons"></script>
9
+ <script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
10
+ <script>
11
+ tailwind.config = {
12
+ theme: {
13
+ extend: {
14
+ colors: {
15
+ primary: '#6366f1',
16
+ secondary: '#8b5cf6'
17
+ }
18
+ }
19
+ }
20
+ }
21
+ </script>
22
+ </head>
23
+ <body class="bg-gray-900 text-white min-h-screen">
24
+ <div class="container mx-auto px-4 py-8">
25
+ <header class="mb-12">
26
+ <h1 class="text-4xl font-bold text-center">AI Training Studio</h1>
27
+ <p class="text-center text-gray-400 mt-2">Upload your data and train custom models</p>
28
+ </header>
29
+
30
+ <main>
31
+ <div class="grid grid-cols-1 lg:grid-cols-2 gap-8">
32
+ <!-- Data Upload Section -->
33
+ <section class="bg-gray-800 rounded-xl p-6 shadow-lg">
34
+ <h2 class="text-2xl font-semibold mb-4 flex items-center">
35
+ <i data-feather="upload" class="mr-2 text-primary-500"></i>
36
+ Training Data Upload
37
+ </h2>
38
+ <div class="space-y-4">
39
+ <div>
40
+ <label class="block text-sm font-medium mb-2">Dataset Name</label>
41
+ <input type="text" class="w-full bg-gray-700 border border-gray-600 rounded-lg p-3 focus:outline-none focus:ring-2 focus:ring-primary-500" placeholder="My Custom Dataset">
42
+ </div>
43
+
44
+ <div>
45
+ <label class="block text-sm font-medium mb-2">Data Type</label>
46
+ <select class="w-full bg-gray-700 border border-gray-600 rounded-lg p-3 focus:outline-none focus:ring-2 focus:ring-primary-500">
47
+ <option>Text Data</option>
48
+ <option>Image Data</option>
49
+ <option>Audio Data</option>
50
+ <option>Tabular Data</option>
51
+ </select>
52
+ </div>
53
+
54
+ <div>
55
+ <label class="block text-sm font-medium mb-2">Upload Training Data</label>
56
+ <div class="border-2 border-dashed border-gray-600 rounded-lg p-8 text-center cursor-pointer hover:border-primary-500 transition-colors duration-300">
57
+ <i data-feather="file-plus" class="mx-auto text-primary-500"></i>
58
+ <p class="mt-2">Drag & drop your files here</p>
59
+ <p class="text-gray-400 text-sm">or</p>
60
+ <button class="mt-2 bg-primary-500 hover:bg-primary-600 text-white py-2 px-4 rounded-lg transition-colors duration-300">Browse Files</button>
61
+ <input type="file" class="hidden" multiple>
62
+ </div>
63
+ </div>
64
+
65
+ <div>
66
+ <label class="block text-sm font-medium mb-2">File Format</label>
67
+ <div class="flex space-x-4">
68
+ <label class="flex items-center">
69
+ <input type="radio" name="format" class="mr-2 text-primary-500" checked>
70
+ <span>CSV</span>
71
+ </label>
72
+ <label class="flex items-center">
73
+ <input type="radio" name="format" class="mr-2 text-primary-500">
74
+ <span>JSON</span>
75
+ </label>
76
+ <label class="flex items-center">
77
+ <input type="radio" name="format" class="mr-2 text-primary-500">
78
+ <span>TFRecord</span>
79
+ </label>
80
+ </div>
81
+ </div>
82
+
83
+ <div>
84
+ <button class="w-full bg-primary-500 hover:bg-primary-600 text-white py-3 rounded-lg font-medium transition-colors duration-300 flex items-center justify-center">
85
+ <i data-feather="upload" class="mr-2"></i>
86
+ Upload Dataset
87
+ </button>
88
+ </div>
89
+ </div>
90
+ </section>
91
+
92
+ <!-- Training Controls Section -->
93
+ <section class="bg-gray-800 rounded-xl p-6 shadow-lg">
94
+ <h2 class="text-2xl font-semibold mb-4 flex items-center">
95
+ <i data-feather="cpu" class="mr-2 text-secondary-500"></i>
96
+ Model Training Controls
97
+ </h2>
98
+ <div class="space-y-6">
99
+ <div>
100
+ <label class="block text-sm font-medium mb-2">Model Architecture</label>
101
+ <select class="w-full bg-gray-700 border border-gray-600 rounded-lg p-3 focus:outline-none focus:ring-2 focus:ring-secondary-500">
102
+ <option>Neural Network</option>
103
+ <option>Convolutional NN</option>
104
+ <option>Recurrent NN</option>
105
+ <option>Transformer</option>
106
+ </select>
107
+ </div>
108
+
109
+ <div>
110
+ <label class="block text-sm font-medium mb-2">Training Epochs</label>
111
+ <div class="flex items-center space-x-4">
112
+ <input type="range" min="1" max="100" value="10" class="w-full bg-gray-700 h-2 rounded-lg appearance-none cursor-pointer accent-secondary-500">
113
+ <span class="bg-gray-700 px-3 py-1 rounded-lg w-16 text-center">10</span>
114
+ </div>
115
+ </div>
116
+
117
+ <div>
118
+ <label class="block text-sm font-medium mb-2">Batch Size</label>
119
+ <div class="grid grid-cols-4 gap-2">
120
+ <button class="bg-gray-700 hover:bg-secondary-500 text-white py-2 rounded-lg transition-colors duration-300">8</button>
121
+ <button class="bg-gray-700 hover:bg-secondary-500 text-white py-2 rounded-lg transition-colors duration-300">16</button>
122
+ <button class="bg-gray-700 hover:bg-secondary-500 text-white py-2 rounded-lg transition-colors duration-300">32</button>
123
+ <button class="bg-secondary-500 text-white py-2 rounded-lg">64</button>
124
+ </div>
125
+ </div>
126
+
127
+ <div>
128
+ <label class="block text-sm font-medium mb-2">Learning Rate</label>
129
+ <div class="flex items-center space-x-4">
130
+ <input type="number" step="0.0001" value="0.001" class="w-full bg-gray-700 border border-gray-600 rounded-lg p-3 focus:outline-none focus:ring-2 focus:ring-secondary-500">
131
+ <input type="range" min="0.0001" max="0.1" step="0.0001" value="0.001" class="w-full bg-gray-700 h-2 rounded-lg appearance-none cursor-pointer accent-secondary-500">
132
+ </div>
133
+ </div>
134
+
135
+ <div class="pt-4">
136
+ <button class="w-full bg-secondary-500 hover:bg-secondary-600 text-white py-3 rounded-lg font-medium transition-colors duration-300 flex items-center justify-center">
137
+ <i data-feather="play" class="mr-2"></i>
138
+ Start Training
139
+ </button>
140
+ </div>
141
+ </div>
142
+ </section>
143
+ </div>
144
+
145
+ <!-- Data Preview Section -->
146
+ <section class="bg-gray-800 rounded-xl p-6 shadow-lg mt-8">
147
+ <h2 class="text-2xl font-semibold mb-4 flex items-center">
148
+ <i data-feather="database" class="mr-2 text-primary-500"></i>
149
+ Data Preview
150
+ </h2>
151
+ <div class="overflow-x-auto">
152
+ <table class="min-w-full bg-gray-700 rounded-lg">
153
+ <thead>
154
+ <tr class="border-b border-gray-600">
155
+ <th class="py-3 px-4 text-left">Feature 1</th>
156
+ <th class="py-3 px-4 text-left">Feature 2</th>
157
+ <th class="py-3 px-4 text-left">Target</th>
158
+ <th class="py-3 px-4 text-left">Metadata</th>
159
+ </tr>
160
+ </thead>
161
+ <tbody>
162
+ <tr class="border-b border-gray-600 hover:bg-gray-600">
163
+ <td class="py-3 px-4">Sample Data 1</td>
164
+ <td class="py-3 px-4">Value A</td>
165
+ <td class="py-3 px-4">Class 1</td>
166
+ <td class="py-3 px-4">Meta Info</td>
167
+ </tr>
168
+ <tr class="border-b border-gray-600 hover:bg-gray-600">
169
+ <td class="py-3 px-4">Sample Data 2</td>
170
+ <td class="py-3 px-4">Value B</td>
171
+ <td class="py-3 px-4">Class 2</td>
172
+ <td class="py-3 px-4">Meta Info</td>
173
+ </tr>
174
+ <tr class="hover:bg-gray-600">
175
+ <td class="py-3 px-4">Sample Data 3</td>
176
+ <td class="py-3 px-4">Value C</td>
177
+ <td class="py-3 px-4">Class 1</td>
178
+ <td class="py-3 px-4">Meta Info</td>
179
+ </tr>
180
+ </tbody>
181
+ </table>
182
+ </div>
183
+ </section>
184
+
185
+ <!-- Training Status Section -->
186
+ <section class="bg-gray-800 rounded-xl p-6 shadow-lg mt-8">
187
+ <h2 class="text-2xl font-semibold mb-4 flex items-center">
188
+ <i data-feather="activity" class="mr-2 text-secondary-500"></i>
189
+ Training Status
190
+ </h2>
191
+ <div class="grid grid-cols-1 md:grid-cols-3 gap-4">
192
+ <div class="bg-gray-700 rounded-lg p-4">
193
+ <h3 class="font-medium text-gray-300 mb-2">Progress</h3>
194
+ <div class="w-full bg-gray-600 rounded-full h-2.5">
195
+ <div class="bg-secondary-500 h-2.5 rounded-full" style="width: 45%"></div>
196
+ </div>
197
+ <p class="mt-2 text-sm">Epoch 4/10</p>
198
+ </div>
199
+ <div class="bg-gray-700 rounded-lg p-4">
200
+ <h3 class="font-medium text-gray-300 mb-2">Accuracy</h3>
201
+ <p class="text-3xl font-bold text-secondary-500">87.4%</p>
202
+ <p class="text-sm text-gray-400 mt-1">Validation Set</p>
203
+ </div>
204
+ <div class="bg-gray-700 rounded-lg p-4">
205
+ <h3 class="font-medium text-gray-300 mb-2">Loss</h3>
206
+ <p class="text-3xl font-bold text-primary-500">0.182</p>
207
+ <p class="text-sm text-gray-400 mt-1">Training Loss</p>
208
+ </div>
209
+ </div>
210
+ <div class="mt-6 flex space-x-4">
211
+ <button class="bg-gray-700 hover:bg-gray-600 text-white py-2 px-4 rounded-lg transition-colors duration-300 flex items-center">
212
+ <i data-feather="pause" class="mr-2"></i>
213
+ Pause
214
+ </button>
215
+ <button class="bg-red-500 hover:bg-red-600 text-white py-2 px-4 rounded-lg transition-colors duration-300 flex items-center">
216
+ <i data-feather="stop-circle" class="mr-2"></i>
217
+ Stop Training
218
+ </button>
219
+ <button class="bg-primary-500 hover:bg-primary-600 text-white py-2 px-4 rounded-lg transition-colors duration-300 flex items-center">
220
+ <i data-feather="download" class="mr-2"></i>
221
+ Export Model
222
+ </button>
223
+ </div>
224
+ </section>
225
+ </main>
226
+ </div>
227
+
228
+ <script>
229
+ feather.replace();
230
+ </script>
231
+ </body>
232
  </html>