Spaces:
Running
Running
Commit
·
4b9f579
1
Parent(s):
3645f18
Update app.py
Browse files
app.py
CHANGED
@@ -40,7 +40,7 @@ def getTextTrans(text, source='zh', target='en'):
|
|
40 |
|
41 |
space_ids = {
|
42 |
"spaces/stabilityai/stable-diffusion": "SD 2.1",
|
43 |
-
|
44 |
# "spaces/stabilityai/stable-diffusion-1": "SD 1.0",
|
45 |
# "dalle_mini_tab": "Dalle mini",
|
46 |
# "spaces/IDEA-CCNL/Taiyi-Stable-Diffusion-Chinese": "Taiyi(太乙)",
|
@@ -179,7 +179,7 @@ start_work = """async() => {
|
|
179 |
} else if (tabitems_title[i].innerText.indexOf('Dreamlike') >= 0 && tabitems[i].childNodes[0].children.length > 0) {
|
180 |
tabitems[i].childNodes[0].children[0].children[1].style.display='none';
|
181 |
} else if (tabitems_title[i].innerText.indexOf('Dalle mini') >= 0) {
|
182 |
-
window['dalle_mini_block']=
|
183 |
}
|
184 |
}
|
185 |
|
@@ -233,10 +233,10 @@ start_work = """async() => {
|
|
233 |
continue;
|
234 |
}
|
235 |
inputText = null;
|
236 |
-
if (tabitems_title[i].innerText.indexOf('SD') >= 0) {
|
237 |
text_value = window['gradioEl'].querySelectorAll('#prompt_work')[0].querySelectorAll('textarea')[0].value;
|
238 |
inputText = tabitems[i].children[0].children[1].children[0].querySelectorAll('.gr-text-input')[0];
|
239 |
-
} else if (tabitems_title[i].innerText.indexOf('Taiyi') >= 0) {
|
240 |
text_value = window['gradioEl'].querySelectorAll('#prompt_work_zh')[0].querySelectorAll('textarea')[0].value;
|
241 |
inputText = tabitems[i].children[0].children[0].children[1].querySelectorAll('.gr-text-input')[0];
|
242 |
}
|
|
|
40 |
|
41 |
space_ids = {
|
42 |
"spaces/stabilityai/stable-diffusion": "SD 2.1",
|
43 |
+
"spaces/runwayml/stable-diffusion-v1-5": "SD 1.5",
|
44 |
# "spaces/stabilityai/stable-diffusion-1": "SD 1.0",
|
45 |
# "dalle_mini_tab": "Dalle mini",
|
46 |
# "spaces/IDEA-CCNL/Taiyi-Stable-Diffusion-Chinese": "Taiyi(太乙)",
|
|
|
179 |
} else if (tabitems_title[i].innerText.indexOf('Dreamlike') >= 0 && tabitems[i].childNodes[0].children.length > 0) {
|
180 |
tabitems[i].childNodes[0].children[0].children[1].style.display='none';
|
181 |
} else if (tabitems_title[i].innerText.indexOf('Dalle mini') >= 0) {
|
182 |
+
window['dalle_mini_block'] = tabitems[i];
|
183 |
}
|
184 |
}
|
185 |
|
|
|
233 |
continue;
|
234 |
}
|
235 |
inputText = null;
|
236 |
+
if (tabitems_title[i].innerText.indexOf('SD') >= 0 && tabitems[i].childNodes[0].children.length > 0) {
|
237 |
text_value = window['gradioEl'].querySelectorAll('#prompt_work')[0].querySelectorAll('textarea')[0].value;
|
238 |
inputText = tabitems[i].children[0].children[1].children[0].querySelectorAll('.gr-text-input')[0];
|
239 |
+
} else if (tabitems_title[i].innerText.indexOf('Taiyi') >= 0 && tabitems[i].childNodes[0].children.length > 0) {
|
240 |
text_value = window['gradioEl'].querySelectorAll('#prompt_work_zh')[0].querySelectorAll('textarea')[0].value;
|
241 |
inputText = tabitems[i].children[0].children[0].children[1].querySelectorAll('.gr-text-input')[0];
|
242 |
}
|