Spaces:
Runtime error
Runtime error
yizhangliu
commited on
Commit
•
1987175
1
Parent(s):
b51a364
Update app.py
Browse files
app.py
CHANGED
@@ -177,8 +177,12 @@ start_work = """async() => {
|
|
177 |
window['gradioEl'].querySelectorAll('#chat_radio')[0].style.width = '100%';
|
178 |
prompt_row.children[0].setAttribute('style','flex-direction: inherit; flex: 1 1 auto; width: 100%;border-color: green;border-width: 1px !important;')
|
179 |
window['chat_bot1'].children[1].setAttribute('style', 'border-bottom-right-radius:0;top:unset;bottom:0;padding-left:0.1rem');
|
|
|
|
|
|
|
180 |
load_conversation(window['chat_bot1'].children[2].children[0]);
|
181 |
window['chat_bot1'].children[2].scrollTop = window['chat_bot1'].children[2].scrollHeight;
|
|
|
182 |
window['gradioEl'].querySelectorAll('#clear-btn')[0].onclick = function(e){
|
183 |
if (confirm('Clear all outputs?')==true) {
|
184 |
window['chat_bot1'].children[2].children[0].innerHTML = '';
|
|
|
177 |
window['gradioEl'].querySelectorAll('#chat_radio')[0].style.width = '100%';
|
178 |
prompt_row.children[0].setAttribute('style','flex-direction: inherit; flex: 1 1 auto; width: 100%;border-color: green;border-width: 1px !important;')
|
179 |
window['chat_bot1'].children[1].setAttribute('style', 'border-bottom-right-radius:0;top:unset;bottom:0;padding-left:0.1rem');
|
180 |
+
window['gradioEl'].querySelectorAll('#btns_row')[0].children[0].setAttribute('style', 'min-width: min(10px, 100%); flex-grow: 1');
|
181 |
+
window['gradioEl'].querySelectorAll('#btns_row')[0].children[1].setAttribute('style', 'min-width: min(10px, 100%); flex-grow: 1');
|
182 |
+
|
183 |
load_conversation(window['chat_bot1'].children[2].children[0]);
|
184 |
window['chat_bot1'].children[2].scrollTop = window['chat_bot1'].children[2].scrollHeight;
|
185 |
+
|
186 |
window['gradioEl'].querySelectorAll('#clear-btn')[0].onclick = function(e){
|
187 |
if (confirm('Clear all outputs?')==true) {
|
188 |
window['chat_bot1'].children[2].children[0].innerHTML = '';
|