There was an error while loading. Please reload this page.
1 parent b94b7be commit dbc4ccbCopy full SHA for dbc4ccb
1 file changed
script.js
@@ -250,7 +250,14 @@ async function runCodeInline() {
250
const lastPart = parts[parts.length - 1].trim();
251
if (lastPart) {
252
// Only add tqdm lines that are at 100% (final state)
253
- if (!lastPart.includes('it/s]') || lastPart.trim().startsWith('100%')) {
+ // Check if line contains "it/s]" (tqdm pattern)
254
+ if (lastPart.includes('it/s]')) {
255
+ // Only include if it starts with "100%"
256
+ if (lastPart.startsWith('100%')) {
257
+ cleanLines.push(lastPart);
258
+ }
259
+ } else {
260
+ // Not a tqdm line, include it
261
cleanLines.push(lastPart);
262
}
263
0 commit comments