multimodalart HF staff commited on
Commit
4f88871
1 Parent(s): 3250483

Update share_btn.py

Browse files
Files changed (1) hide show
  1. 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"] span').innerText
42
- const randomLoRA_2 = gradioEl.querySelector('#component-7 img')
43
- const randomLoRA_2_title = gradioEl.querySelector('#component-7 [data-testid="block-label"] span').innerText
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