Spaces:
Running
on
Zero
Running
on
Zero
Commit
•
dd28d50
1
Parent(s):
ac7a4f5
Update share_btn.py
Browse files- share_btn.py +3 -3
share_btn.py
CHANGED
@@ -38,8 +38,8 @@ share_js = """async () => {
|
|
38 |
}
|
39 |
|
40 |
const gradioEl = document.querySelector("gradio-app").shadowRoot || document.querySelector('body > gradio-app');
|
41 |
-
const selectedLoRA = gradioEl.querySelector('#selected_lora
|
42 |
-
const inputPrompt = gradioEl.querySelector('#prompt
|
43 |
const outputImgEl = gradioEl.querySelector('#result-image img');
|
44 |
|
45 |
const shareBtnEl = gradioEl.querySelector('#share-btn');
|
@@ -55,7 +55,7 @@ share_js = """async () => {
|
|
55 |
|
56 |
const descriptionMd = `
|
57 |
|
58 |
-
|
59 |
|
60 |
### Prompt
|
61 |
${inputPrompt}
|
|
|
38 |
}
|
39 |
|
40 |
const gradioEl = document.querySelector("gradio-app").shadowRoot || document.querySelector('body > gradio-app');
|
41 |
+
const selectedLoRA = gradioEl.querySelector('#selected_lora').innerHTML;
|
42 |
+
const inputPrompt = gradioEl.querySelector('#prompt input').value;
|
43 |
const outputImgEl = gradioEl.querySelector('#result-image img');
|
44 |
|
45 |
const shareBtnEl = gradioEl.querySelector('#share-btn');
|
|
|
55 |
|
56 |
const descriptionMd = `
|
57 |
|
58 |
+
${selectedLoRA}
|
59 |
|
60 |
### Prompt
|
61 |
${inputPrompt}
|