Update text-to-text-generation.html
Browse files
text-to-text-generation.html
CHANGED
@@ -107,16 +107,11 @@
|
|
107 |
const textFieldValue = document.getElementById("text-to-textGenerationText2").value.trim();
|
108 |
|
109 |
const result = await generator(textFieldValue, {
|
110 |
-
|
111 |
-
temperature: 0.9,
|
112 |
-
repetition_penalty: 2.0,
|
113 |
-
no_repeat_ngram_size: 3,
|
114 |
-
|
115 |
-
// top_k: 20,
|
116 |
-
// do_sample: true,
|
117 |
});
|
118 |
-
|
119 |
-
document.getElementById("outputArea2")
|
|
|
120 |
}
|
121 |
|
122 |
// Initialize the model after the DOM is completely loaded
|
|
|
107 |
const textFieldValue = document.getElementById("text-to-textGenerationText2").value.trim();
|
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
|