FourLabs-UN2 commited on
Commit
85555fd
·
verified ·
1 Parent(s): 0af7fb0

Faça com sidebar e essas cores:

Browse files

colors: {
primary: '#21223a',
secondary: '#ff580f',
}

Faça uma página onde o usuário poderá subir uma instância na AWS escolhendo o Instance Type, Availability Zone e modelo LLM do ollama que quer rodar na instância.

Files changed (2) hide show
  1. README.md +8 -5
  2. index.html +214 -18
README.md CHANGED
@@ -1,10 +1,13 @@
1
  ---
2
- title: Ollamaclouddeployer
3
- emoji: 🏃
4
- colorFrom: pink
5
- colorTo: yellow
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: OllamaCloudDeployer 🚀
3
+ colorFrom: yellow
4
+ colorTo: gray
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,215 @@
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="pt-BR">
3
+ <head>
4
+ <meta charset="UTF-8">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
+ <title>OllamaCloudDeployer - Deploy AWS</title>
7
+ <link rel="icon" type="image/x-icon" href="/static/favicon.ico">
8
+ <script src="https://cdn.tailwindcss.com"></script>
9
+ <script>
10
+ tailwind.config = {
11
+ theme: {
12
+ extend: {
13
+ colors: {
14
+ primary: '#21223a',
15
+ secondary: '#ff580f',
16
+ }
17
+ }
18
+ }
19
+ }
20
+ </script>
21
+ <script src="https://unpkg.com/feather-icons"></script>
22
+ <script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
23
+ </head>
24
+ <body class="bg-gray-100 min-h-screen">
25
+ <div class="flex h-screen">
26
+ <!-- Sidebar -->
27
+ <div class="w-64 bg-primary text-white shadow-lg">
28
+ <div class="p-6">
29
+ <div class="flex items-center space-x-3">
30
+ <i data-feather="cloud" class="text-secondary w-8 h-8"></i>
31
+ <h1 class="text-xl font-bold">OllamaDeployer</h1>
32
+ </div>
33
+ </div>
34
+
35
+ <nav class="mt-8">
36
+ <a href="#" class="flex items-center px-6 py-3 text-secondary bg-primary-dark hover:bg-primary/80 transition-colors">
37
+ <i data-feather="plus-circle" class="w-5 h-5 mr-3"></i>
38
+ <span>Novo Deploy</span>
39
+ </a>
40
+ <a href="#" class="flex items-center px-6 py-3 text-white hover:bg-primary/80 transition-colors">
41
+ <i data-feather="server" class="w-5 h-5 mr-3"></i>
42
+ <span>Instâncias</span>
43
+ </a>
44
+ <a href="#" class="flex items-center px-6 py-3 text-white hover:bg-primary/80 transition-colors">
45
+ <i data-feather="settings" class="w-5 h-5 mr-3"></i>
46
+ <span>Configurações</span>
47
+ </a>
48
+ <a href="#" class="flex items-center px-6 py-3 text-white hover:bg-primary/80 transition-colors">
49
+ <i data-feather="help-circle" class="w-5 h-5 mr-3"></i>
50
+ <span>Ajuda</span>
51
+ </a>
52
+ </nav>
53
+
54
+ <div class="absolute bottom-0 w-64 p-6">
55
+ <div class="bg-primary/50 rounded-lg p-4">
56
+ <p class="text-sm text-gray-300">Status: Online</p>
57
+ <div class="flex items-center mt-2">
58
+ <div class="w-3 h-3 bg-green-500 rounded-full mr-2"></div>
59
+ <span class="text-xs text-green-400">Sistema operacional</span>
60
+ </div>
61
+ </div>
62
+ </div>
63
+ </div>
64
+
65
+ <!-- Main Content -->
66
+ <div class="flex-1 overflow-y-auto">
67
+ <div class="p-8">
68
+ <div class="max-w-4xl mx-auto">
69
+ <div class="mb-8">
70
+ <h2 class="text-3xl font-bold text-gray-800 mb-2">Deploy AWS com Ollama</h2>
71
+ <p class="text-gray-600">Configure sua instância AWS com modelos LLM do Ollama</p>
72
+ </div>
73
+
74
+ <div class="bg-white rounded-xl shadow-lg p-6 mb-8">
75
+ <h3 class="text-xl font-semibold text-gray-800 mb-6">Configurações da Instância</h3>
76
+
77
+ <form id="deployForm">
78
+ <!-- Instance Type -->
79
+ <div class="mb-6">
80
+ <label class="block text-sm font-medium text-gray-700 mb-2">Tipo de Instância</label>
81
+ <select class="w-full px-4 py-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-secondary focus:border-transparent transition-colors">
82
+ <option value="">Selecione o tipo de instância</option>
83
+ <option value="t3.micro">t3.micro (1 vCPU, 1GB RAM)</option>
84
+ <option value="t3.small">t3.small (2 vCPU, 2GB RAM)</option>
85
+ <option value="t3.medium">t3.medium (2 vCPU, 4GB RAM)</option>
86
+ <option value="t3.large">t3.large (2 vCPU, 8GB RAM)</option>
87
+ <option value="m5.large">m5.large (2 vCPU, 8GB RAM)</option>
88
+ <option value="m5.xlarge">m5.xlarge (4 vCPU, 16GB RAM)</option>
89
+ </select>
90
+ </div>
91
+
92
+ <!-- Availability Zone -->
93
+ <div class="mb-6">
94
+ <label class="block text-sm font-medium text-gray-700 mb-2">Zona de Disponibilidade</label>
95
+ <select class="w-full px-4 py-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-secondary focus:border-transparent transition-colors">
96
+ <option value="">Selecione a zona</option>
97
+ <option value="us-east-1a">us-east-1a (N. Virginia)</option>
98
+ <option value="us-east-1b">us-east-1b (N. Virginia)</option>
99
+ <option value="us-west-2a">us-west-2a (Oregon)</option>
100
+ <option value="us-west-2b">us-west-2b (Oregon)</option>
101
+ <option value="eu-west-1a">eu-west-1a (Ireland)</option>
102
+ <option value="sa-east-1a">sa-east-1a (São Paulo)</option>
103
+ </select>
104
+ </div>
105
+
106
+ <!-- LLM Model -->
107
+ <div class="mb-8">
108
+ <label class="block text-sm font-medium text-gray-700 mb-2">Modelo LLM do Ollama</label>
109
+ <div class="grid grid-cols-1 md:grid-cols-2 gap-4">
110
+ <div class="border border-gray-200 rounded-lg p-4 hover:border-secondary transition-colors cursor-pointer">
111
+ <div class="flex items-center mb-3">
112
+ <i data-feather="cpu" class="w-5 h-5 text-secondary mr-2"></i>
113
+ <h4 class="font-semibold">Llama 2</h4>
114
+ </div>
115
+ <p class="text-sm text-gray-600">7B parâmetros, ideal para tasks gerais</p>
116
+ <div class="mt-2 text-xs text-gray-500">RAM: 4GB+</div>
117
+ </div>
118
+
119
+ <div class="border border-gray-200 rounded-lg p-4 hover:border-secondary transition-colors cursor-pointer">
120
+ <div class="flex items-center mb-3">
121
+ <i data-feather="cpu" class="w-5 h-5 text-secondary mr-2"></i>
122
+ <h4 class="font-semibold">Mistral</h4>
123
+ </div>
124
+ <p class="text-sm text-gray-600">7B parâmetros, eficiente e rápido</p>
125
+ <div class="mt-2 text-xs text-gray-500">RAM: 4GB+</div>
126
+ </div>
127
+
128
+ <div class="border border-gray-200 rounded-lg p-4 hover:border-secondary transition-colors cursor-pointer">
129
+ <div class="flex items-center mb-3">
130
+ <i data-feather="cpu" class="w-5 h-5 text-secondary mr-2"></i>
131
+ <h4 class="font-semibold">CodeLlama</h4>
132
+ </div>
133
+ <p class="text-sm text-gray-600">Especializado em geração de código</p>
134
+ <div class="mt-2 text-xs text-gray-500">RAM: 8GB+</div>
135
+ </div>
136
+
137
+ <div class="border border-gray-200 rounded-lg p-4 hover:border-secondary transition-colors cursor-pointer">
138
+ <div class="flex items-center mb-3">
139
+ <i data-feather="cpu" class="w-5 h-5 text-secondary mr-2"></i>
140
+ <h4 class="font-semibold">Gemma</h4>
141
+ </div>
142
+ <p class="text-sm text-gray-600">Modelo leve da Google</p>
143
+ <div class="mt-2 text-xs text-gray-500">RAM: 2GB+</div>
144
+ </div>
145
+ </div>
146
+ </div>
147
+
148
+ <!-- Advanced Settings -->
149
+ <div class="mb-6">
150
+ <div class="flex items-center justify-between mb-4">
151
+ <h4 class="font-semibold text-gray-800">Configurações Avançadas</h4>
152
+ <i data-feather="chevron-down" class="w-5 h-5 text-gray-400"></i>
153
+ </div>
154
+ <div class="space-y-4">
155
+ <div>
156
+ <label class="block text-sm font-medium text-gray-700 mb-2">Storage (GB)</label>
157
+ <input type="number" value="20" min="8" max="100" class="w-full px-4 py-2 border border-gray-300 rounded-lg">
158
+ </div>
159
+ <div>
160
+ <label class="block text-sm font-medium text-gray-700 mb-2">Porta API</label>
161
+ <input type="number" value="11434" class="w-full px-4 py-2 border border-gray-300 rounded-lg">
162
+ </div>
163
+ </div>
164
+ </div>
165
+
166
+ <!-- Submit Button -->
167
+ <button type="submit" class="w-full bg-secondary hover:bg-secondary/90 text-white font-semibold py-3 px-6 rounded-lg transition-colors flex items-center justify-center">
168
+ <i data-feather="cloud" class="w-5 h-5 mr-2"></i>
169
+ Deployar Instância
170
+ </button>
171
+ </form>
172
+ </div>
173
+
174
+ <!-- Status Panel -->
175
+ <div class="bg-white rounded-xl shadow-lg p-6">
176
+ <h3 class="text-xl font-semibold text-gray-800 mb-4">Status do Deploy</h3>
177
+ <div class="space-y-4">
178
+ <div class="flex items-center justify-between p-4 bg-gray-50 rounded-lg">
179
+ <span class="text-gray-600">Instância AWS</span>
180
+ <span class="text-yellow-600 font-medium">Pendente</span>
181
+ </div>
182
+ <div class="flex items-center justify-between p-4 bg-gray-50 rounded-lg">
183
+ <span class="text-gray-600">Ollama Install</span>
184
+ <span class="text-yellow-600 font-medium">Pendente</span>
185
+ </div>
186
+ <div class="flex items-center justify-between p-4 bg-gray-50 rounded-lg">
187
+ <span class="text-gray-600">Model Download</span>
188
+ <span class="text-yellow-600 font-medium">Pendente</span>
189
+ </div>
190
+ </div>
191
+ </div>
192
+ </div>
193
+ </div>
194
+ </div>
195
+ </div>
196
+
197
+ <script>
198
+ feather.replace();
199
+
200
+ document.getElementById('deployForm').addEventListener('submit', function(e) {
201
+ e.preventDefault();
202
+ alert('Deploy iniciado! Sua instância AWS com Ollama está sendo configurada.');
203
+ });
204
+
205
+ // Model selection
206
+ const modelCards = document.querySelectorAll('.border-gray-200');
207
+ modelCards.forEach(card => {
208
+ card.addEventListener('click', function() {
209
+ modelCards.forEach(c => c.classList.remove('border-secondary', 'bg-orange-50'));
210
+ this.classList.add('border-secondary', 'bg-orange-50');
211
+ });
212
+ });
213
+ </script>
214
+ </body>
215
  </html>