Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -399,12 +399,15 @@ js_code = """
|
|
| 399 |
);
|
| 400 |
|
| 401 |
const chatbox = document.getElementById('component-2');
|
|
|
|
| 402 |
if (chatbox.style.transform === 'scaleY(0)') {
|
| 403 |
chatbox.style.transform = 'scaleY(1)';
|
| 404 |
chatbox.style.opacity = '1';
|
|
|
|
| 405 |
} else {
|
| 406 |
chatbox.style.transform = 'scaleY(0)';
|
| 407 |
chatbox.style.opacity = '0';
|
|
|
|
| 408 |
}
|
| 409 |
}
|
| 410 |
|
|
|
|
| 399 |
);
|
| 400 |
|
| 401 |
const chatbox = document.getElementById('component-2');
|
| 402 |
+
const buttonImg = document.getElementById('custom-btn');
|
| 403 |
if (chatbox.style.transform === 'scaleY(0)') {
|
| 404 |
chatbox.style.transform = 'scaleY(1)';
|
| 405 |
chatbox.style.opacity = '1';
|
| 406 |
+
buttonImg.src = "/file=bot.png";
|
| 407 |
} else {
|
| 408 |
chatbox.style.transform = 'scaleY(0)';
|
| 409 |
chatbox.style.opacity = '0';
|
| 410 |
+
buttonImg.src = "/file=message.png";
|
| 411 |
}
|
| 412 |
}
|
| 413 |
|