Spaces:
Paused
Paused
fixed typo
Browse files- share_btn.py +1 -1
share_btn.py
CHANGED
@@ -40,7 +40,7 @@ share_js = """async () => {
|
|
40 |
const gradioEl = document.querySelector("gradio-app").shadowRoot || document.querySelector('body > gradio-app');
|
41 |
const inputImgEl = gradioEl.querySelector('#image-in img');
|
42 |
const outputTxt = gradioEl.querySelector('#story textarea').value;
|
43 |
-
const wordsArray =
|
44 |
const firstSevenWords = wordsArray.slice(0, 7).join(" ");
|
45 |
|
46 |
const shareBtnEl = gradioEl.querySelector('#share-btn');
|
|
|
40 |
const gradioEl = document.querySelector("gradio-app").shadowRoot || document.querySelector('body > gradio-app');
|
41 |
const inputImgEl = gradioEl.querySelector('#image-in img');
|
42 |
const outputTxt = gradioEl.querySelector('#story textarea').value;
|
43 |
+
const wordsArray = outputTxt.split(" ");
|
44 |
const firstSevenWords = wordsArray.slice(0, 7).join(" ");
|
45 |
|
46 |
const shareBtnEl = gradioEl.querySelector('#share-btn');
|