multimodalart HF staff commited on
Commit
4d96c7e
1 Parent(s): 3e21e1d

Update share_btn.py

Browse files
Files changed (1) hide show
  1. 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('#component-7 img');
41
- const randomLoRA_1_title = gradioEl.querySelector('#component-7 [data-testid="block-label"]').innerText
42
 
43
- const randomLoRA_2 = gradioEl.querySelector('#component-12 img')
44
- const randomLoRA_2_title = gradioEl.querySelector('#component-12 [data-testid="block-label"]').innerText
45
  const prompt = gradioEl.querySelector('#prompt textarea').value
46
- const outputImgEl = gradioEl.querySelector('#component-22 img');
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');