multimodalart HF staff commited on
Commit
69f9e02
1 Parent(s): f335346

Update share_btn.py

Browse files
Files changed (1) hide show
  1. share_btn.py +2 -2
share_btn.py CHANGED
@@ -38,7 +38,7 @@ 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 textarea').value;
43
  const outputImgEl = gradioEl.querySelector('#result-image img');
44
 
@@ -61,7 +61,7 @@ share_js = """async () => {
61
  ${inputPrompt}
62
 
63
  #### Generated Image:
64
- <img src="${outputImgEl}" />
65
  `;
66
  const params = new URLSearchParams({
67
  title: inputPrompt,
 
38
  }
39
 
40
  const gradioEl = document.querySelector("gradio-app").shadowRoot || document.querySelector('body > gradio-app');
41
+ const selectedLoRA = gradioEl.querySelector('#selected_lora').value;
42
  const inputPrompt = gradioEl.querySelector('#prompt textarea').value;
43
  const outputImgEl = gradioEl.querySelector('#result-image img');
44
 
 
61
  ${inputPrompt}
62
 
63
  #### Generated Image:
64
+ <img src="${urlInputImg}" />
65
  `;
66
  const params = new URLSearchParams({
67
  title: inputPrompt,