Spaces:
Sleeping
Sleeping
Update src/agent_banana/server.py
Browse files
src/agent_banana/server.py
CHANGED
|
@@ -51,7 +51,7 @@ HTML_PAGE = r"""<!doctype html>
|
|
| 51 |
transition: all 0.2s; text-align: center;
|
| 52 |
}
|
| 53 |
.upload-btn:hover { border-color: var(--accent); color: var(--accent); }
|
| 54 |
-
.image-list { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
|
| 55 |
.image-thumb {
|
| 56 |
width: 100%; border-radius: var(--radius-sm); object-fit: contain; max-height: 180px;
|
| 57 |
border: 2px solid transparent; cursor: pointer; transition: border 0.2s;
|
|
@@ -366,7 +366,7 @@ HTML_PAGE = r"""<!doctype html>
|
|
| 366 |
}
|
| 367 |
|
| 368 |
function addAgentMsg(text, extra) {
|
| 369 |
-
var html = '<div class="msg agent"><div class="msg-avatar">
|
| 370 |
'<div class="msg-sender">Moleculyst</div><div class="msg-bubble">' + text + '</div>';
|
| 371 |
if (extra) html += extra;
|
| 372 |
html += '</div></div>';
|
|
@@ -392,7 +392,7 @@ HTML_PAGE = r"""<!doctype html>
|
|
| 392 |
}
|
| 393 |
|
| 394 |
function addTyping() {
|
| 395 |
-
var html = '<div class="msg agent" id="typingIndicator"><div class="msg-avatar">
|
| 396 |
chat.insertAdjacentHTML("beforeend", html);
|
| 397 |
scrollToBottom();
|
| 398 |
}
|
|
|
|
| 51 |
transition: all 0.2s; text-align: center;
|
| 52 |
}
|
| 53 |
.upload-btn:hover { border-color: var(--accent); color: var(--accent); }
|
| 54 |
+
.image-list { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; max-height: 220px; overflow-y: auto; }
|
| 55 |
.image-thumb {
|
| 56 |
width: 100%; border-radius: var(--radius-sm); object-fit: contain; max-height: 180px;
|
| 57 |
border: 2px solid transparent; cursor: pointer; transition: border 0.2s;
|
|
|
|
| 366 |
}
|
| 367 |
|
| 368 |
function addAgentMsg(text, extra) {
|
| 369 |
+
var html = '<div class="msg agent"><div class="msg-avatar"><img src="https://cdn-uploads.huggingface.co/production/uploads/68f7eb6c3f706d5831b3e4b6/rgK8CzbI57Fkn5HrDfxtu.png" style="width:28px;height:28px;border-radius:50%;object-fit:contain;background:#0d1117;" /></div><div class="msg-body">' +
|
| 370 |
'<div class="msg-sender">Moleculyst</div><div class="msg-bubble">' + text + '</div>';
|
| 371 |
if (extra) html += extra;
|
| 372 |
html += '</div></div>';
|
|
|
|
| 392 |
}
|
| 393 |
|
| 394 |
function addTyping() {
|
| 395 |
+
var html = '<div class="msg agent" id="typingIndicator"><div class="msg-avatar"><img src="https://cdn-uploads.huggingface.co/production/uploads/68f7eb6c3f706d5831b3e4b6/rgK8CzbI57Fkn5HrDfxtu.png" style="width:28px;height:28px;border-radius:50%;object-fit:contain;background:#0d1117;" /></div><div class="msg-body"><div class="typing"><span></span><span></span><span></span></div></div></div>';
|
| 396 |
chat.insertAdjacentHTML("beforeend", html);
|
| 397 |
scrollToBottom();
|
| 398 |
}
|