bmf911 commited on
Commit
be9083f
·
verified ·
1 Parent(s): 30408b2

Add 3 files

Browse files
Files changed (3) hide show
  1. README.md +7 -5
  2. index.html +263 -19
  3. prompts.txt +1 -0
README.md CHANGED
@@ -1,10 +1,12 @@
1
  ---
2
- title: Open Computer Terminal Basic
3
- emoji: 📊
4
- colorFrom: yellow
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: open-computer-terminal-basic
3
+ emoji: 🐳
4
+ colorFrom: red
5
+ colorTo: yellow
6
  sdk: static
7
  pinned: false
8
+ tags:
9
+ - deepsite
10
  ---
11
 
12
+ Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
index.html CHANGED
@@ -1,19 +1,263 @@
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>Open Computer Agent Virtual</title>
7
+ <script src="https://cdn.tailwindcss.com"></script>
8
+ <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
9
+ <style>
10
+ @keyframes pulse {
11
+ 0%, 100% { opacity: 1; }
12
+ 50% { opacity: 0.5; }
13
+ }
14
+ .typing-indicator::after {
15
+ content: '...';
16
+ animation: typing 1.5s infinite;
17
+ }
18
+ @keyframes typing {
19
+ 0% { content: '.'; }
20
+ 33% { content: '..'; }
21
+ 66% { content: '...'; }
22
+ }
23
+ .glow-effect {
24
+ box-shadow: 0 0 15px rgba(59, 130, 246, 0.5);
25
+ }
26
+ .terminal-scrollbar::-webkit-scrollbar {
27
+ width: 6px;
28
+ }
29
+ .terminal-scrollbar::-webkit-scrollbar-thumb {
30
+ background-color: rgba(59, 130, 246, 0.5);
31
+ border-radius: 3px;
32
+ }
33
+ </style>
34
+ </head>
35
+ <body class="bg-gray-900 text-gray-100 min-h-screen flex flex-col">
36
+ <!-- Header -->
37
+ <header class="bg-gray-800 border-b border-gray-700 p-4 flex items-center justify-between">
38
+ <div class="flex items-center space-x-3">
39
+ <div class="w-10 h-10 bg-blue-500 rounded-full flex items-center justify-center">
40
+ <i class="fas fa-robot text-xl"></i>
41
+ </div>
42
+ <h1 class="text-xl font-bold">Open Computer Agent</h1>
43
+ </div>
44
+ <div class="flex space-x-4">
45
+ <button class="px-3 py-1 bg-gray-700 hover:bg-gray-600 rounded-md transition">
46
+ <i class="fas fa-cog"></i>
47
+ </button>
48
+ <button class="px-3 py-1 bg-gray-700 hover:bg-gray-600 rounded-md transition">
49
+ <i class="fas fa-question-circle"></i>
50
+ </button>
51
+ <button class="px-3 py-1 bg-blue-600 hover:bg-blue-500 rounded-md transition">
52
+ <i class="fas fa-power-off"></i>
53
+ </button>
54
+ </div>
55
+ </header>
56
+
57
+ <!-- Main Content -->
58
+ <main class="flex-1 flex flex-col md:flex-row p-4 gap-4">
59
+ <!-- Sidebar -->
60
+ <aside class="w-full md:w-64 bg-gray-800 rounded-lg p-4 flex flex-col">
61
+ <div class="mb-6">
62
+ <h2 class="text-lg font-semibold mb-2">Agent Status</h2>
63
+ <div class="bg-gray-700 p-3 rounded-lg">
64
+ <div class="flex items-center mb-2">
65
+ <div class="w-3 h-3 bg-green-500 rounded-full mr-2"></div>
66
+ <span>Active</span>
67
+ </div>
68
+ <div class="text-sm text-gray-400">
69
+ <p>Version: 2.4.1</p>
70
+ <p>Uptime: 3h 42m</p>
71
+ </div>
72
+ </div>
73
+ </div>
74
+
75
+ <div class="mb-6">
76
+ <h2 class="text-lg font-semibold mb-2">Quick Actions</h2>
77
+ <div class="space-y-2">
78
+ <button class="w-full text-left px-3 py-2 bg-gray-700 hover:bg-gray-600 rounded-md transition flex items-center">
79
+ <i class="fas fa-terminal mr-2"></i> New Terminal
80
+ </button>
81
+ <button class="w-full text-left px-3 py-2 bg-gray-700 hover:bg-gray-600 rounded-md transition flex items-center">
82
+ <i class="fas fa-code mr-2"></i> Code Editor
83
+ </button>
84
+ <button class="w-full text-left px-3 py-2 bg-gray-700 hover:bg-gray-600 rounded-md transition flex items-center">
85
+ <i class="fas fa-database mr-2"></i> Data Explorer
86
+ </button>
87
+ </div>
88
+ </div>
89
+
90
+ <div class="mt-auto">
91
+ <h2 class="text-lg font-semibold mb-2">System Resources</h2>
92
+ <div class="space-y-2">
93
+ <div>
94
+ <div class="flex justify-between text-sm mb-1">
95
+ <span>CPU</span>
96
+ <span>42%</span>
97
+ </div>
98
+ <div class="w-full bg-gray-700 rounded-full h-2">
99
+ <div class="bg-blue-500 h-2 rounded-full" style="width: 42%"></div>
100
+ </div>
101
+ </div>
102
+ <div>
103
+ <div class="flex justify-between text-sm mb-1">
104
+ <span>Memory</span>
105
+ <span>68%</span>
106
+ </div>
107
+ <div class="w-full bg-gray-700 rounded-full h-2">
108
+ <div class="bg-purple-500 h-2 rounded-full" style="width: 68%"></div>
109
+ </div>
110
+ </div>
111
+ </div>
112
+ </div>
113
+ </aside>
114
+
115
+ <!-- Main Panel -->
116
+ <div class="flex-1 flex flex-col">
117
+ <!-- Terminal Window -->
118
+ <div class="flex-1 bg-gray-800 rounded-lg overflow-hidden flex flex-col">
119
+ <div class="bg-gray-700 px-4 py-2 flex items-center justify-between border-b border-gray-600">
120
+ <div class="flex items-center space-x-2">
121
+ <div class="w-3 h-3 bg-red-500 rounded-full"></div>
122
+ <div class="w-3 h-3 bg-yellow-500 rounded-full"></div>
123
+ <div class="w-3 h-3 bg-green-500 rounded-full"></div>
124
+ <span class="ml-2 text-sm">Terminal</span>
125
+ </div>
126
+ <div class="flex space-x-2">
127
+ <button class="text-gray-400 hover:text-white">
128
+ <i class="fas fa-expand"></i>
129
+ </button>
130
+ <button class="text-gray-400 hover:text-white">
131
+ <i class="fas fa-times"></i>
132
+ </button>
133
+ </div>
134
+ </div>
135
+ <div id="terminal-content" class="flex-1 p-4 overflow-y-auto terminal-scrollbar font-mono text-sm">
136
+ <div class="mb-2">
137
+ <span class="text-green-400">user@oca-virtual:~$</span> <span class="text-blue-400">welcome</span>
138
+ </div>
139
+ <div class="mb-4">
140
+ <p>Open Computer Agent Virtual v2.4.1</p>
141
+ <p>Type 'help' for available commands</p>
142
+ </div>
143
+ <div id="command-history"></div>
144
+ <div class="flex items-center">
145
+ <span class="text-green-400">user@oca-virtual:~$</span>
146
+ <input id="command-input" type="text" class="bg-transparent border-none outline-none flex-1 ml-2" autofocus>
147
+ <div id="typing-indicator" class="typing-indicator ml-2 text-gray-400 hidden"></div>
148
+ </div>
149
+ </div>
150
+ </div>
151
+
152
+ <!-- Quick Tools -->
153
+ <div class="mt-4 bg-gray-800 rounded-lg p-4">
154
+ <h2 class="text-lg font-semibold mb-3">Quick Tools</h2>
155
+ <div class="grid grid-cols-2 md:grid-cols-4 gap-3">
156
+ <button class="p-3 bg-gray-700 hover:bg-gray-600 rounded-lg transition flex flex-col items-center">
157
+ <i class="fas fa-file-code text-blue-400 text-2xl mb-2"></i>
158
+ <span>New Script</span>
159
+ </button>
160
+ <button class="p-3 bg-gray-700 hover:bg-gray-600 rounded-lg transition flex flex-col items-center">
161
+ <i class="fas fa-chart-line text-purple-400 text-2xl mb-2"></i>
162
+ <span>Analytics</span>
163
+ </button>
164
+ <button class="p-3 bg-gray-700 hover:bg-gray-600 rounded-lg transition flex flex-col items-center">
165
+ <i class="fas fa-network-wired text-green-400 text-2xl mb-2"></i>
166
+ <span>Network</span>
167
+ </button>
168
+ <button class="p-3 bg-gray-700 hover:bg-gray-600 rounded-lg transition flex flex-col items-center">
169
+ <i class="fas fa-shield-alt text-yellow-400 text-2xl mb-2"></i>
170
+ <span>Security</span>
171
+ </button>
172
+ </div>
173
+ </div>
174
+ </div>
175
+ </main>
176
+
177
+ <!-- Footer -->
178
+ <footer class="bg-gray-800 border-t border-gray-700 p-3 text-sm text-gray-400 flex justify-between items-center">
179
+ <div class="flex items-center space-x-4">
180
+ <span>Status: <span class="text-green-400">Connected</span></span>
181
+ <span>Latency: 28ms</span>
182
+ </div>
183
+ <div>
184
+ <span>© 2023 Open Computer Agent Virtual</span>
185
+ </div>
186
+ </footer>
187
+
188
+ <script>
189
+ document.addEventListener('DOMContentLoaded', function() {
190
+ const commandInput = document.getElementById('command-input');
191
+ const commandHistory = document.getElementById('command-history');
192
+ const typingIndicator = document.getElementById('typing-indicator');
193
+ const terminalContent = document.getElementById('terminal-content');
194
+
195
+ // Sample commands and responses
196
+ const commands = {
197
+ 'help': 'Available commands: help, about, status, clear, time, date, network, tasks',
198
+ 'about': 'Open Computer Agent Virtual v2.4.1\nAn AI-powered virtual assistant for system management and automation.',
199
+ 'status': 'System Status:\n- CPU: 42%\n- Memory: 68%\n- Storage: 45%\n- Network: Active',
200
+ 'clear': function() { commandHistory.innerHTML = ''; return ''; },
201
+ 'time': function() { return new Date().toLocaleTimeString(); },
202
+ 'date': function() { return new Date().toLocaleDateString(); },
203
+ 'network': 'Network Status:\n- IP: 192.168.1.105\n- Gateway: 192.168.1.1\n- DNS: 8.8.8.8',
204
+ 'tasks': 'Running Tasks:\n1. System Monitor (PID: 1423)\n2. Network Service (PID: 1567)\n3. Security Agent (PID: 1621)'
205
+ };
206
+
207
+ // Auto-scroll to bottom of terminal
208
+ function scrollToBottom() {
209
+ terminalContent.scrollTop = terminalContent.scrollHeight;
210
+ }
211
+
212
+ // Process command
213
+ function processCommand(cmd) {
214
+ const prompt = document.createElement('div');
215
+ prompt.className = 'mb-2';
216
+ prompt.innerHTML = `<span class="text-green-400">user@oca-virtual:~$</span> <span class="text-blue-400">${cmd}</span>`;
217
+ commandHistory.appendChild(prompt);
218
+
219
+ // Show typing indicator
220
+ typingIndicator.classList.remove('hidden');
221
+ scrollToBottom();
222
+
223
+ // Simulate processing delay
224
+ setTimeout(() => {
225
+ typingIndicator.classList.add('hidden');
226
+
227
+ const response = document.createElement('div');
228
+ response.className = 'mb-4';
229
+
230
+ if (cmd in commands) {
231
+ const cmdResponse = typeof commands[cmd] === 'function' ? commands[cmd]() : commands[cmd];
232
+ response.textContent = cmdResponse;
233
+ } else {
234
+ response.textContent = `Command not found: ${cmd}. Type 'help' for available commands.`;
235
+ }
236
+
237
+ commandHistory.appendChild(response);
238
+ scrollToBottom();
239
+ }, 800 + Math.random() * 800);
240
+ }
241
+
242
+ // Handle command input
243
+ commandInput.addEventListener('keydown', function(e) {
244
+ if (e.key === 'Enter') {
245
+ const cmd = commandInput.value.trim();
246
+ if (cmd) {
247
+ processCommand(cmd);
248
+ }
249
+ commandInput.value = '';
250
+ }
251
+ });
252
+
253
+ // Focus input on terminal click
254
+ terminalContent.addEventListener('click', function() {
255
+ commandInput.focus();
256
+ });
257
+
258
+ // Initial focus
259
+ commandInput.focus();
260
+ });
261
+ </script>
262
+ <p style="border-radius: 8px; text-align: center; font-size: 12px; color: #fff; margin-top: 16px;position: fixed; left: 8px; bottom: 8px; z-index: 10; background: rgba(0, 0, 0, 0.8); padding: 4px 8px;">Made with <img src="https://enzostvs-deepsite.hf.space/logo.svg" alt="DeepSite Logo" style="width: 16px; height: 16px; vertical-align: middle;display:inline-block;margin-right:3px;filter:brightness(0) invert(1);"><a href="https://enzostvs-deepsite.hf.space" style="color: #fff;text-decoration: underline;" target="_blank" >DeepSite</a> - 🧬 <a href="https://enzostvs-deepsite.hf.space?remix=bmf911/open-computer-terminal-basic" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
263
+ </html>
prompts.txt ADDED
@@ -0,0 +1 @@
 
 
1
+ make Open Computer Agentvirtual