Spaces:
Running
Running
Commit
·
37735a6
1
Parent(s):
88cedf6
Update app.py
Browse files
app.py
CHANGED
|
@@ -103,17 +103,14 @@ start_work = """async() => {
|
|
| 103 |
}
|
| 104 |
setTimeout(function() {
|
| 105 |
text1 = window['gradioEl'].querySelectorAll('textarea')[1];
|
| 106 |
-
//console.log('do_click()_1_' + text1.value);
|
| 107 |
|
| 108 |
btns = window['gradioEl'].querySelectorAll('button');
|
| 109 |
for (var i = 0; i < btns.length; i++) {
|
| 110 |
if (btns[i].innerText == 'Submit') {
|
| 111 |
btns[i].focus();
|
| 112 |
btns[i].click();
|
| 113 |
-
//break;
|
| 114 |
}
|
| 115 |
}
|
| 116 |
-
//console.log('do_click()_3_');
|
| 117 |
window['doCheckPrompt'] = 0;
|
| 118 |
}, 10);
|
| 119 |
}
|
|
@@ -136,7 +133,7 @@ with gr.Blocks(title='Text to Image') as demo:
|
|
| 136 |
with gr.Group(elem_id="page_2", visible=False) as page_2:
|
| 137 |
with gr.Row(elem_id="prompt_row"):
|
| 138 |
prompt_input0 = gr.Textbox(lines=4, label="prompt")
|
| 139 |
-
prompt_input1 = gr.Textbox(lines=4, label="prompt", visible=
|
| 140 |
with gr.Row():
|
| 141 |
submit_btn = gr.Button(value = "submit",elem_id="erase-btn").style(
|
| 142 |
margin=True,
|
|
|
|
| 103 |
}
|
| 104 |
setTimeout(function() {
|
| 105 |
text1 = window['gradioEl'].querySelectorAll('textarea')[1];
|
|
|
|
| 106 |
|
| 107 |
btns = window['gradioEl'].querySelectorAll('button');
|
| 108 |
for (var i = 0; i < btns.length; i++) {
|
| 109 |
if (btns[i].innerText == 'Submit') {
|
| 110 |
btns[i].focus();
|
| 111 |
btns[i].click();
|
|
|
|
| 112 |
}
|
| 113 |
}
|
|
|
|
| 114 |
window['doCheckPrompt'] = 0;
|
| 115 |
}, 10);
|
| 116 |
}
|
|
|
|
| 133 |
with gr.Group(elem_id="page_2", visible=False) as page_2:
|
| 134 |
with gr.Row(elem_id="prompt_row"):
|
| 135 |
prompt_input0 = gr.Textbox(lines=4, label="prompt")
|
| 136 |
+
prompt_input1 = gr.Textbox(lines=4, label="prompt", visible=False)
|
| 137 |
with gr.Row():
|
| 138 |
submit_btn = gr.Button(value = "submit",elem_id="erase-btn").style(
|
| 139 |
margin=True,
|