Spaces:
Sleeping
Sleeping
Update static/demo/js/main.js
Browse files- static/demo/js/main.js +2 -2
static/demo/js/main.js
CHANGED
|
@@ -350,7 +350,7 @@ function generateResponse(rawText, chatId, sendBtnId) {
|
|
| 350 |
|
| 351 |
const modelHeader = $("<div style='display: flex; flex-direction: row;'>")
|
| 352 |
.addClass("model-info")
|
| 353 |
-
.html(`<img src="
|
| 354 |
$(chatId).append(modelHeader);
|
| 355 |
|
| 356 |
appendAssistantTurn("", chatId, "assistantBubble")
|
|
@@ -554,7 +554,7 @@ function generateRecommendations(sendBtnId, promptInputId, recommendationDivId)
|
|
| 554 |
} else {
|
| 555 |
const graphBtn = $(`
|
| 556 |
<button id="graphBtn" class="btn">
|
| 557 |
-
<img src="
|
| 558 |
</button>
|
| 559 |
`);
|
| 560 |
graphBtn.on('click', () => toggleGraph(graphData, "graphBtn", 'afas'));
|
|
|
|
| 350 |
|
| 351 |
const modelHeader = $("<div style='display: flex; flex-direction: row;'>")
|
| 352 |
.addClass("model-info")
|
| 353 |
+
.html(`<img src="static/demo/imgs/granite.svg" class='icon'/> <div style='display:flex; align-items: center;margin-left: 0.5rem'>${modelId}</div>`);
|
| 354 |
$(chatId).append(modelHeader);
|
| 355 |
|
| 356 |
appendAssistantTurn("", chatId, "assistantBubble")
|
|
|
|
| 554 |
} else {
|
| 555 |
const graphBtn = $(`
|
| 556 |
<button id="graphBtn" class="btn">
|
| 557 |
+
<img src="static/demo/imgs/data-vis.svg" alt="Graph" class="icon" height="2rem"/>
|
| 558 |
</button>
|
| 559 |
`);
|
| 560 |
graphBtn.on('click', () => toggleGraph(graphData, "graphBtn", 'afas'));
|