Spaces:
Runtime error
Runtime error
Ron Au
commited on
Commit
·
5422c55
1
Parent(s):
6e56991
Initial Commit
Browse files- index.html +1 -1
- index.js +1 -0
index.html
CHANGED
|
@@ -1863,7 +1863,7 @@
|
|
| 1863 |
<option value="zebra">zebra</option>
|
| 1864 |
<option value="zucchini">zucchini</option>
|
| 1865 |
</select>
|
| 1866 |
-
<img class="image-gen-output"
|
| 1867 |
</section>
|
| 1868 |
<section id="text-gen">
|
| 1869 |
<h2>Text generation from transformers library</h2>
|
|
|
|
| 1863 |
<option value="zebra">zebra</option>
|
| 1864 |
<option value="zucchini">zucchini</option>
|
| 1865 |
</select>
|
| 1866 |
+
<img class="image-gen-output" alt="pelican generated from BigGAN AI model" width="200" height="200" />
|
| 1867 |
</section>
|
| 1868 |
<section id="text-gen">
|
| 1869 |
<h2>Text generation from transformers library</h2>
|
index.js
CHANGED
|
@@ -73,6 +73,7 @@ imageGenSelect.addEventListener("change", async (event) => {
|
|
| 73 |
|
| 74 |
try {
|
| 75 |
imageGenImage.src = await textToImage(value);
|
|
|
|
| 76 |
} catch (err) {
|
| 77 |
console.error(err);
|
| 78 |
}
|
|
|
|
| 73 |
|
| 74 |
try {
|
| 75 |
imageGenImage.src = await textToImage(value);
|
| 76 |
+
imageGenImage.alt = value + " generated from BigGAN AI model";
|
| 77 |
} catch (err) {
|
| 78 |
console.error(err);
|
| 79 |
}
|