R-Kentaren commited on
Commit
42b8782
·
verified ·
1 Parent(s): 4e3dc84

Upload static/index.html with huggingface_hub

Browse files
Files changed (1) hide show
  1. static/index.html +43 -52
static/index.html CHANGED
@@ -13,72 +13,66 @@
13
  <script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.9.0/highlight.min.js"></script>
14
  <!-- Marked.js for Markdown Parsing -->
15
  <script src="https://cdn.jsdelivr.net/npm/marked/marked.min.js"></script>
16
- <!-- HF OAuth JS SDK -->
17
- <script src="https://cdn.jsdelivr.net/npm/@huggingface/hub/+esm" type="module"></script>
18
- <!-- Custom Style Sheet -->
19
- <link rel="stylesheet" href="/static/style.css?v=6">
20
  </head>
21
  <body>
22
  <div class="app-container">
23
-
24
  <!-- Left Sidebar: Chat History -->
25
  <aside class="sidebar-left" id="sidebar-left">
26
  <div class="left-sidebar-header">
27
  <div class="header-brand">
28
- <img src="/static/deepseek-color.svg" alt="Logo" class="brand-logo-img">
29
  <span class="brand-name">DeepSeek</span>
30
  </div>
31
- <button class="circle-btn-action" id="btn-toggle-left" title="Collapse sidebar">
32
- <svg viewBox="0 0 24 24" width="14" height="14" stroke="currentColor" stroke-width="2.5" fill="none" stroke-linecap="round" stroke-linejoin="round"><line x1="3" y1="12" x2="21" y2="12"></line><line x1="3" y1="6" x2="21" y2="6"></line><line x1="3" y1="18" x2="21" y2="18"></line></svg>
33
  </button>
34
  </div>
35
-
36
- <!-- New Chat Button -->
37
- <div class="left-sidebar-actions">
38
- <button class="new-chat-btn" id="menu-new-chat" title="New Chat">
39
- <svg viewBox="0 0 24 24" width="14" height="14" stroke="currentColor" stroke-width="2" fill="none" stroke-linecap="round" stroke-linejoin="round"><line x1="12" y1="5" x2="12" y2="19"></line><line x1="5" y1="12" x2="19" y2="12"></line></svg>
40
- <span>New Chat</span>
41
- </button>
 
42
  </div>
43
-
44
- <!-- Chat History List -->
 
 
 
 
45
  <div class="chat-history-list" id="chat-history-list">
46
- <div class="empty-history-text">No conversations yet</div>
47
  </div>
48
 
49
- <!-- User Profile Footer -->
50
- <div class="left-sidebar-footer" id="left-sidebar-footer">
51
- <div class="user-profile" id="user-profile">
52
- <div class="user-avatar" id="user-avatar">
53
- <svg viewBox="0 0 24 24" width="16" height="16" stroke="currentColor" stroke-width="2" fill="none" stroke-linecap="round" stroke-linejoin="round"><path d="M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2"></path><circle cx="12" cy="7" r="4"></circle></svg>
54
- </div>
55
- <div class="user-info" id="user-info">
56
- <span class="user-name" id="user-name">Guest</span>
57
- <span class="user-status">Not signed in</span>
58
- </div>
59
- <button class="circle-btn-action" id="btn-login" title="Sign in with HuggingFace">
60
- <svg viewBox="0 0 24 24" width="14" height="14" stroke="currentColor" stroke-width="2" fill="none" stroke-linecap="round" stroke-linejoin="round"><path d="M15 3h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4"></path><polyline points="10 17 15 12 10 7"></polyline><line x1="15" y1="12" x2="3" y2="12"></line></svg>
61
- </button>
62
  </div>
63
  </div>
64
  </aside>
65
 
 
 
 
66
  <!-- Main Workspace -->
67
  <main class="main-workspace">
68
  <!-- Top Navigation Bar -->
69
  <header class="workspace-header">
70
  <div class="header-left-group">
71
- <button class="circle-btn-action mobile-only" id="btn-hamburger" title="Menu">
72
  <svg viewBox="0 0 24 24" width="16" height="16" stroke="currentColor" stroke-width="2" fill="none" stroke-linecap="round" stroke-linejoin="round"><line x1="3" y1="12" x2="21" y2="12"></line><line x1="3" y1="6" x2="21" y2="6"></line><line x1="3" y1="18" x2="21" y2="18"></line></svg>
73
  </button>
74
- <span class="chat-title-header" id="chat-title-header">New Chat</span>
 
 
 
75
  </div>
76
-
77
  <div class="header-actions">
78
- <button class="header-btn" id="menu-new-chat-header" title="New Chat">
79
- <svg viewBox="0 0 24 24" width="16" height="16" stroke="currentColor" stroke-width="2" fill="none" stroke-linecap="round" stroke-linejoin="round"><path d="M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7"></path><path d="M18.5 2.5a2.121 2.121 0 1 1 3 3L12 15l-4 1 1-4z"></path></svg>
80
- <span>New Chat</span>
81
- </button>
82
  <button class="header-btn" id="btn-toggle-right" title="Settings">
83
  <svg viewBox="0 0 24 24" width="16" height="16" stroke="currentColor" stroke-width="2" fill="none" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="3"></circle><path d="M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 1 1-2.83 2.83l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 0 1-4 0v-.09A1.65 1.65 0 0 0 9 19.4a1.65 1.65 0 0 0-1.82.33l-.06.06a2 2 0 1 1-2.83-2.83l.06-.06a1.65 1.65 0 0 0 .33-1.82 1.65 1.65 0 0 0-1.51-1H3a2 2 0 0 1 0-4h.09A1.65 1.65 0 0 0 4.6 9a1.65 1.65 0 0 0-.33-1.82l-.06-.06a2 2 0 1 1 2.83-2.83l.06.06a1.65 1.65 0 0 0 1.82.33H9a1.65 1.65 0 0 0 1-1.51V3a2 2 0 0 1 4 0v.09a1.65 1.65 0 0 0 1 1.51 1.65 1.65 0 0 0 1.82-.33l.06-.06a2 2 0 1 1 2.83 2.83l-.06.06a1.65 1.65 0 0 0-.33 1.82V9a1.65 1.65 0 0 0 1.51 1H21a2 2 0 0 1 0 4h-.09a1.65 1.65 0 0 0-1.51 1z"></path></svg>
84
  <span>Settings</span>
@@ -86,17 +80,17 @@
86
  </div>
87
  </header>
88
 
89
- <!-- Workspace Viewport -->
90
  <div class="workspace-viewport">
91
-
92
  <!-- 1. EMPTY CHAT / STUDIO DASHBOARD -->
93
  <div class="studio-dashboard" id="studio-dashboard">
94
  <h2 class="welcome-heading">Hello, welcome to DeepSeek</h2>
95
-
96
  <!-- Central Console Box -->
97
  <div class="console-box">
98
  <textarea id="studio-prompt-input" rows="2" placeholder="Ask me anything..."></textarea>
99
-
100
  <!-- Upload preview shelf inside console -->
101
  <div class="inner-shelf-preview" id="inner-shelf-preview"></div>
102
 
@@ -104,7 +98,7 @@
104
  <button class="circle-btn-action" id="studio-upload-trigger" title="Attach Media File">
105
  <svg viewBox="0 0 24 24" width="16" height="16" stroke="currentColor" stroke-width="2.5" fill="none" stroke-linecap="round" stroke-linejoin="round"><line x1="12" y1="5" x2="12" y2="19"></line><line x1="5" y1="12" x2="19" y2="12"></line></svg>
106
  </button>
107
-
108
  <button class="circle-btn-send" id="studio-send-button" title="Send Task">
109
  <svg viewBox="0 0 24 24" width="14" height="14" stroke="#ffffff" stroke-width="3" fill="none" stroke-linecap="round" stroke-linejoin="round"><line x1="12" y1="19" x2="12" y2="5"></line><polyline points="5 12 12 5 19 12"></polyline></svg>
110
  <div class="spinner-light" id="studio-spinner" style="display: none;"></div>
@@ -137,13 +131,13 @@
137
  <div class="chat-messages-feed" id="chat-messages-feed">
138
  <!-- Message bubbles populate dynamically -->
139
  </div>
140
-
141
  <!-- Bottom Reply bar -->
142
  <div class="chat-mini-footer">
143
  <div class="console-box mini">
144
  <textarea id="mini-prompt-input" rows="1" placeholder="Reply or ask anything..."></textarea>
145
  <div class="mini-shelf-preview" id="mini-shelf-preview"></div>
146
-
147
  <div class="console-action-row">
148
  <button class="circle-btn-action" id="mini-upload-trigger" title="Attach Media File">
149
  <svg viewBox="0 0 24 24" width="14" height="14" stroke="currentColor" stroke-width="2.5" fill="none" stroke-linecap="round" stroke-linejoin="round"><line x1="12" y1="5" x2="12" y2="19"></line><line x1="5" y1="12" x2="19" y2="12"></line></svg>
@@ -160,13 +154,13 @@
160
  </div>
161
  </main>
162
 
163
- <!-- Sidebar Overlay backdrop for mobile -->
164
  <div class="sidebar-overlay" id="sidebar-overlay"></div>
165
 
166
- <!-- Right Settings Drawer (Collapsed by default, slides on top of main area) -->
167
  <aside class="sidebar-right collapsed" id="sidebar-right">
168
  <input type="file" id="file-uploader" accept="image/*,video/*" multiple style="display: none;">
169
-
170
  <div class="right-sidebar-header">
171
  <h3>Settings</h3>
172
  <button class="circle-btn-action close-drawer" id="btn-close-drawer">
@@ -257,7 +251,7 @@
257
  </div>
258
  </div>
259
  </div>
260
-
261
  <div class="right-sidebar-footer">
262
  <div class="status-indicator-group">
263
  <span class="status-dot online"></span>
@@ -267,8 +261,5 @@
267
  </aside>
268
 
269
  </div>
270
-
271
- <!-- Gradio Client JS connection -->
272
- <script type="module" src="/static/app.js?v=7"></script>
273
  </body>
274
  </html>
 
13
  <script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.9.0/highlight.min.js"></script>
14
  <!-- Marked.js for Markdown Parsing -->
15
  <script src="https://cdn.jsdelivr.net/npm/marked/marked.min.js"></script>
 
 
 
 
16
  </head>
17
  <body>
18
  <div class="app-container">
19
+
20
  <!-- Left Sidebar: Chat History -->
21
  <aside class="sidebar-left" id="sidebar-left">
22
  <div class="left-sidebar-header">
23
  <div class="header-brand">
24
+ <img src="/file=static/deepseek-color.svg" alt="Logo" class="brand-logo-img">
25
  <span class="brand-name">DeepSeek</span>
26
  </div>
27
+ <button class="circle-btn-action" id="btn-close-left" title="Close sidebar">
28
+ <svg viewBox="0 0 24 24" width="14" height="14" stroke="currentColor" stroke-width="2.5" fill="none" stroke-linecap="round" stroke-linejoin="round"><line x1="18" y1="6" x2="6" y2="18"></line><line x1="6" y1="6" x2="18" y2="18"></line></svg>
29
  </button>
30
  </div>
31
+
32
+ <!-- User profile / Login -->
33
+ <div class="user-profile-section" id="user-profile-section">
34
+ <div class="user-avatar" id="user-avatar">?</div>
35
+ <div class="user-info-text">
36
+ <div class="user-display-name" id="user-display-name">Not logged in</div>
37
+ <button class="hf-login-btn" id="hf-login-btn">Sign in with HuggingFace</button>
38
+ </div>
39
  </div>
40
+
41
+ <button class="new-chat-btn" id="menu-new-chat" title="New Chat">
42
+ <svg viewBox="0 0 24 24" width="14" height="14" stroke="currentColor" stroke-width="2.5" fill="none" stroke-linecap="round" stroke-linejoin="round"><line x1="12" y1="5" x2="12" y2="19"></line><line x1="5" y1="12" x2="19" y2="12"></line></svg>
43
+ <span>New Chat</span>
44
+ </button>
45
+
46
  <div class="chat-history-list" id="chat-history-list">
47
+ <div class="empty-history-text">No chat history yet.<br>Start a conversation!</div>
48
  </div>
49
 
50
+ <div class="left-sidebar-footer">
51
+ <div class="status-indicator-group">
52
+ <span class="status-dot online"></span>
53
+ <span>DeepSeek V4 Flash</span>
 
 
 
 
 
 
 
 
 
54
  </div>
55
  </div>
56
  </aside>
57
 
58
+ <!-- Left Sidebar Overlay (mobile) -->
59
+ <div class="sidebar-overlay-left" id="sidebar-overlay-left"></div>
60
+
61
  <!-- Main Workspace -->
62
  <main class="main-workspace">
63
  <!-- Top Navigation Bar -->
64
  <header class="workspace-header">
65
  <div class="header-left-group">
66
+ <button class="header-btn" id="btn-toggle-left" title="Chat History">
67
  <svg viewBox="0 0 24 24" width="16" height="16" stroke="currentColor" stroke-width="2" fill="none" stroke-linecap="round" stroke-linejoin="round"><line x1="3" y1="12" x2="21" y2="12"></line><line x1="3" y1="6" x2="21" y2="6"></line><line x1="3" y1="18" x2="21" y2="18"></line></svg>
68
  </button>
69
+ <div class="header-brand">
70
+ <img src="/file=static/deepseek-color.svg" alt="DeepSeek V4 Flash Logo" class="brand-logo-img">
71
+ <span class="brand-name">DeepSeek V4 Flash</span>
72
+ </div>
73
  </div>
74
+
75
  <div class="header-actions">
 
 
 
 
76
  <button class="header-btn" id="btn-toggle-right" title="Settings">
77
  <svg viewBox="0 0 24 24" width="16" height="16" stroke="currentColor" stroke-width="2" fill="none" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="3"></circle><path d="M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 1 1-2.83 2.83l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 0 1-4 0v-.09A1.65 1.65 0 0 0 9 19.4a1.65 1.65 0 0 0-1.82.33l-.06.06a2 2 0 1 1-2.83-2.83l.06-.06a1.65 1.65 0 0 0 .33-1.82 1.65 1.65 0 0 0-1.51-1H3a2 2 0 0 1 0-4h.09A1.65 1.65 0 0 0 4.6 9a1.65 1.65 0 0 0-.33-1.82l-.06-.06a2 2 0 1 1 2.83-2.83l.06.06a1.65 1.65 0 0 0 1.82.33H9a1.65 1.65 0 0 0 1-1.51V3a2 2 0 0 1 4 0v.09a1.65 1.65 0 0 0 1 1.51 1.65 1.65 0 0 0 1.82-.33l.06-.06a2 2 0 1 1 2.83 2.83l-.06.06a1.65 1.65 0 0 0-.33 1.82V9a1.65 1.65 0 0 0 1.51 1H21a2 2 0 0 1 0 4h-.09a1.65 1.65 0 0 0-1.51 1z"></path></svg>
78
  <span>Settings</span>
 
80
  </div>
81
  </header>
82
 
83
+ <!-- Viewport Layout -->
84
  <div class="workspace-viewport">
85
+
86
  <!-- 1. EMPTY CHAT / STUDIO DASHBOARD -->
87
  <div class="studio-dashboard" id="studio-dashboard">
88
  <h2 class="welcome-heading">Hello, welcome to DeepSeek</h2>
89
+
90
  <!-- Central Console Box -->
91
  <div class="console-box">
92
  <textarea id="studio-prompt-input" rows="2" placeholder="Ask me anything..."></textarea>
93
+
94
  <!-- Upload preview shelf inside console -->
95
  <div class="inner-shelf-preview" id="inner-shelf-preview"></div>
96
 
 
98
  <button class="circle-btn-action" id="studio-upload-trigger" title="Attach Media File">
99
  <svg viewBox="0 0 24 24" width="16" height="16" stroke="currentColor" stroke-width="2.5" fill="none" stroke-linecap="round" stroke-linejoin="round"><line x1="12" y1="5" x2="12" y2="19"></line><line x1="5" y1="12" x2="19" y2="12"></line></svg>
100
  </button>
101
+
102
  <button class="circle-btn-send" id="studio-send-button" title="Send Task">
103
  <svg viewBox="0 0 24 24" width="14" height="14" stroke="#ffffff" stroke-width="3" fill="none" stroke-linecap="round" stroke-linejoin="round"><line x1="12" y1="19" x2="12" y2="5"></line><polyline points="5 12 12 5 19 12"></polyline></svg>
104
  <div class="spinner-light" id="studio-spinner" style="display: none;"></div>
 
131
  <div class="chat-messages-feed" id="chat-messages-feed">
132
  <!-- Message bubbles populate dynamically -->
133
  </div>
134
+
135
  <!-- Bottom Reply bar -->
136
  <div class="chat-mini-footer">
137
  <div class="console-box mini">
138
  <textarea id="mini-prompt-input" rows="1" placeholder="Reply or ask anything..."></textarea>
139
  <div class="mini-shelf-preview" id="mini-shelf-preview"></div>
140
+
141
  <div class="console-action-row">
142
  <button class="circle-btn-action" id="mini-upload-trigger" title="Attach Media File">
143
  <svg viewBox="0 0 24 24" width="14" height="14" stroke="currentColor" stroke-width="2.5" fill="none" stroke-linecap="round" stroke-linejoin="round"><line x1="12" y1="5" x2="12" y2="19"></line><line x1="5" y1="12" x2="19" y2="12"></line></svg>
 
154
  </div>
155
  </main>
156
 
157
+ <!-- Right Sidebar Overlay backdrop for mobile -->
158
  <div class="sidebar-overlay" id="sidebar-overlay"></div>
159
 
160
+ <!-- Right Settings Drawer (Collapsed by default) -->
161
  <aside class="sidebar-right collapsed" id="sidebar-right">
162
  <input type="file" id="file-uploader" accept="image/*,video/*" multiple style="display: none;">
163
+
164
  <div class="right-sidebar-header">
165
  <h3>Settings</h3>
166
  <button class="circle-btn-action close-drawer" id="btn-close-drawer">
 
251
  </div>
252
  </div>
253
  </div>
254
+
255
  <div class="right-sidebar-footer">
256
  <div class="status-indicator-group">
257
  <span class="status-dot online"></span>
 
261
  </aside>
262
 
263
  </div>
 
 
 
264
  </body>
265
  </html>