Spaces:
Running
Running
Hiroaki Ogasawara
commited on
Commit
•
c095711
1
Parent(s):
d6da45f
chore: 改行を表示
Browse files
utils.py
CHANGED
@@ -185,7 +185,7 @@ def report(tasks: list[dict]) -> str:
|
|
185 |
|
186 |
const content = document.createElement('div');
|
187 |
content.classList.add('content');
|
188 |
-
content.
|
189 |
|
190 |
message.appendChild(from);
|
191 |
message.appendChild(content);
|
@@ -199,9 +199,9 @@ def report(tasks: list[dict]) -> str:
|
|
199 |
const task = document.createElement('div');
|
200 |
task.classList.add('task');
|
201 |
|
202 |
-
task.appendChild(createDivider(message.task_id ?
|
203 |
task.appendChild(createMessage(message.input, 'input'));
|
204 |
-
task.appendChild(createMessage(message.output, 'output'));
|
205 |
|
206 |
container.appendChild(task);
|
207 |
});
|
|
|
185 |
|
186 |
const content = document.createElement('div');
|
187 |
content.classList.add('content');
|
188 |
+
content.innerHTML = text.replace(/\\n/g, '<br>');
|
189 |
|
190 |
message.appendChild(from);
|
191 |
message.appendChild(content);
|
|
|
199 |
const task = document.createElement('div');
|
200 |
task.classList.add('task');
|
201 |
|
202 |
+
task.appendChild(createDivider(message.task_id ? `Task ID: ${message.task_id}` : `Task Index ${i}`));
|
203 |
task.appendChild(createMessage(message.input, 'input'));
|
204 |
+
task.appendChild(createMessage(message.output, 'output' + (message.score ? ` (score: ${message.score})` : '')));
|
205 |
|
206 |
container.appendChild(task);
|
207 |
});
|