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

Update share_btn.py

Browse files
Files changed (1) hide show
  1. share_btn.py +2 -1
share_btn.py CHANGED
@@ -39,6 +39,7 @@ share_js = """async () => {
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
@@ -65,7 +66,7 @@ share_js = """async () => {
65
 
66
  | ${randomLoRA_1_title} | | ${randomLoRA_2_title}|
67
  |---------|-----------|---------|
68
- | <img width=100 alt="${randomLoRA_1_title}" src="${urlLoRA1}" /> | + | <img width=100 alt="${randomLoRA_1_title}" src="${urlLoRA1}" /> |
69
 
70
  ### Prompt
71
  ${prompt}
 
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
 
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
 
71
  ### Prompt
72
  ${prompt}