Spaces:
Sleeping
Sleeping
Commit
•
4d96c7e
1
Parent(s):
3e21e1d
Update share_btn.py
Browse files- share_btn.py +5 -5
share_btn.py
CHANGED
@@ -37,13 +37,13 @@ share_js = """async () => {
|
|
37 |
}
|
38 |
}
|
39 |
const gradioEl = document.querySelector("gradio-app").shadowRoot || document.querySelector('body > gradio-app');
|
40 |
-
const randomLoRA_1 = gradioEl.querySelector('#
|
41 |
-
const randomLoRA_1_title = gradioEl.querySelector('#
|
42 |
|
43 |
-
const randomLoRA_2 = gradioEl.querySelector('#
|
44 |
-
const randomLoRA_2_title = gradioEl.querySelector('#
|
45 |
const prompt = gradioEl.querySelector('#prompt textarea').value
|
46 |
-
const outputImgEl = gradioEl.querySelector('#
|
47 |
|
48 |
const shareBtnEl = gradioEl.querySelector('#share-btn');
|
49 |
const shareIconEl = gradioEl.querySelector('#share-btn-share-icon');
|
|
|
37 |
}
|
38 |
}
|
39 |
const gradioEl = document.querySelector("gradio-app").shadowRoot || document.querySelector('body > gradio-app');
|
40 |
+
const randomLoRA_1 = gradioEl.querySelector('#randomLoRA_1 img');
|
41 |
+
const randomLoRA_1_title = gradioEl.querySelector('#randomLoRA_1 [data-testid="block-label"]').innerText
|
42 |
|
43 |
+
const randomLoRA_2 = gradioEl.querySelector('#randomLoRA_2 img')
|
44 |
+
const randomLoRA_2_title = gradioEl.querySelector('#randomLoRA_1 [data-testid="block-label"]').innerText
|
45 |
const prompt = gradioEl.querySelector('#prompt textarea').value
|
46 |
+
const outputImgEl = gradioEl.querySelector('#output_image img');
|
47 |
|
48 |
const shareBtnEl = gradioEl.querySelector('#share-btn');
|
49 |
const shareIconEl = gradioEl.querySelector('#share-btn-share-icon');
|