yizhangliu commited on
Commit
c5569a2
1 Parent(s): f97bb4e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -6
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
- for (var i = 0; i < window['chat_bot1'].children[0].children.length; i++) {
91
- window['chat_bot1'].children[0].removeChild(window['chat_bot1'].children[0].children[i]);
 
 
92
  }
93
- for (var i = 0; i < window['chat_bot'].children[0].children.length; i++) {
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
  }