Spaces:
Runtime error
Runtime error
Commit
•
b54cbc7
1
Parent(s):
d1f8613
Update share_btn.py
Browse files- share_btn.py +3 -2
share_btn.py
CHANGED
@@ -39,9 +39,10 @@ share_js = """async () => {
|
|
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_2 [data-testid="block-label"]').innerText
|
|
|
45 |
const prompt = gradioEl.querySelector('#prompt textarea').value
|
46 |
const outputImgEl = gradioEl.querySelector('#output_image img');
|
47 |
|
@@ -64,7 +65,7 @@ share_js = """async () => {
|
|
64 |
|
65 |
const descriptionMd = `
|
66 |
|
67 |
-
| ${randomLoRA_1_title} | | ${randomLoRA_2_title}|
|
68 |
|---------|-----------|---------|
|
69 |
| <img width=200 alt="${randomLoRA_1_title}" src="${urlLoRA1}" /> | + | <img width=200 alt="${randomLoRA_2_title}" src="${urlLoRA2}" /> |
|
70 |
|
|
|
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 |
+
const randomLoRA_1_id = gradioEl.querySelector('#random_lora_1_id textarea').value
|
43 |
const randomLoRA_2 = gradioEl.querySelector('#randomLoRA_2 img')
|
44 |
const randomLoRA_2_title = gradioEl.querySelector('#randomLoRA_2 [data-testid="block-label"]').innerText
|
45 |
+
const randomLoRA_2_id = gradioEl.querySelector('#random_lora_1_id textarea').value
|
46 |
const prompt = gradioEl.querySelector('#prompt textarea').value
|
47 |
const outputImgEl = gradioEl.querySelector('#output_image img');
|
48 |
|
|
|
65 |
|
66 |
const descriptionMd = `
|
67 |
|
68 |
+
| [${randomLoRA_1_title}](https://huggingface.co/${randomLoRA_1_id}) | | [${randomLoRA_2_title}](https://huggingface.co/${randomLoRA_1_id}) |
|
69 |
|---------|-----------|---------|
|
70 |
| <img width=200 alt="${randomLoRA_1_title}" src="${urlLoRA1}" /> | + | <img width=200 alt="${randomLoRA_2_title}" src="${urlLoRA2}" /> |
|
71 |
|