Spaces:
Runtime error
Runtime error
yizhangliu
commited on
Commit
•
c5569a2
1
Parent(s):
f97bb4e
Update app.py
Browse files
app.py
CHANGED
@@ -87,13 +87,12 @@ start_work = """async() => {
|
|
87 |
}
|
88 |
window['div_count'] = chat_bot.children[2].children[0].children.length;
|
89 |
}
|
90 |
-
|
91 |
-
|
|
|
|
|
92 |
}
|
93 |
-
|
94 |
-
new_div = window['chat_bot'].children[0].children[i].cloneNode(true);
|
95 |
-
window['chat_bot1'].children[0].appendChild(new_div);
|
96 |
-
}
|
97 |
} catch(e) {
|
98 |
}
|
99 |
}
|
|
|
87 |
}
|
88 |
window['div_count'] = chat_bot.children[2].children[0].children.length;
|
89 |
}
|
90 |
+
if (window['chat_bot'].children[0].children.length > 1) {
|
91 |
+
window['chat_bot'].children[1].textContent = window['chat_bot'].children[0].children[1].textContent;
|
92 |
+
} else {
|
93 |
+
window['chat_bot'].children[1].textContent = '';
|
94 |
}
|
95 |
+
|
|
|
|
|
|
|
96 |
} catch(e) {
|
97 |
}
|
98 |
}
|