Spaces:
Runtime error
Runtime error
Commit
•
4f88871
1
Parent(s):
3250483
Update share_btn.py
Browse files- share_btn.py +3 -3
share_btn.py
CHANGED
@@ -38,9 +38,9 @@ share_js = """async () => {
|
|
38 |
}
|
39 |
const gradioEl = document.querySelector("gradio-app").shadowRoot || document.querySelector('body > gradio-app');
|
40 |
const randomLoRA_1 = gradioEl.querySelector('#component-7 img');
|
41 |
-
const randomLoRA_1_title = gradioEl.querySelector('#component-7 [data-testid="block-label"]
|
42 |
-
const randomLoRA_2 = gradioEl.querySelector('#component-
|
43 |
-
const randomLoRA_2_title = gradioEl.querySelector('#component-
|
44 |
const prompt = gradioEl.querySelector('#prompt textarea').value
|
45 |
const outputImgEl = gradioEl.querySelector('#component-22 img');
|
46 |
|
|
|
38 |
}
|
39 |
const gradioEl = document.querySelector("gradio-app").shadowRoot || document.querySelector('body > gradio-app');
|
40 |
const randomLoRA_1 = gradioEl.querySelector('#component-7 img');
|
41 |
+
const randomLoRA_1_title = gradioEl.querySelector('#component-7 [data-testid="block-label"]').innerText
|
42 |
+
const randomLoRA_2 = gradioEl.querySelector('#component-12 img')
|
43 |
+
const randomLoRA_2_title = gradioEl.querySelector('#component-12 [data-testid="block-label"]').innerText
|
44 |
const prompt = gradioEl.querySelector('#prompt textarea').value
|
45 |
const outputImgEl = gradioEl.querySelector('#component-22 img');
|
46 |
|