Update text-to-text-generation.html
Browse files
text-to-text-generation.html
CHANGED
|
@@ -108,10 +108,12 @@
|
|
| 108 |
|
| 109 |
const result = await generator(textFieldValue, {
|
| 110 |
// To-Do: generator ๊ฐ์ฒด์ temperature ํ๋ผ๋ฏธํฐ ๊ฐ์ ์ง์ ํ์ญ์์ค.
|
|
|
|
| 111 |
});
|
| 112 |
// To-Do: result์ ๊ฐ์ stringd์ผ๋ก ๋ณํํ์ฌ outputArea2์ ์ถ๋ ฅํ์ญ์์ค.
|
| 113 |
// ํํธ: document.getElementById("outputArea2") ์ฌ์ฉ
|
| 114 |
-
|
|
|
|
| 115 |
}
|
| 116 |
|
| 117 |
// Initialize the model after the DOM is completely loaded
|
|
|
|
| 108 |
|
| 109 |
const result = await generator(textFieldValue, {
|
| 110 |
// To-Do: generator ๊ฐ์ฒด์ temperature ํ๋ผ๋ฏธํฐ ๊ฐ์ ์ง์ ํ์ญ์์ค.
|
| 111 |
+
temperature:90
|
| 112 |
});
|
| 113 |
// To-Do: result์ ๊ฐ์ stringd์ผ๋ก ๋ณํํ์ฌ outputArea2์ ์ถ๋ ฅํ์ญ์์ค.
|
| 114 |
// ํํธ: document.getElementById("outputArea2") ์ฌ์ฉ
|
| 115 |
+
document.getElementById("outputArea2").innerText = JSON.stringify(result, null, 2);
|
| 116 |
+
|
| 117 |
}
|
| 118 |
|
| 119 |
// Initialize the model after the DOM is completely loaded
|