Spaces:
Running
Running
Update text-to-text-generation.html
#4
by
ggureung
- opened
text-to-text-generation.html
CHANGED
@@ -107,10 +107,14 @@
|
|
107 |
const textFieldValue = document.getElementById("text-to-textGenerationText2").value.trim();
|
108 |
|
109 |
const result = await generator(textFieldValue, {
|
110 |
-
|
|
|
|
|
|
|
|
|
|
|
111 |
});
|
112 |
-
|
113 |
-
// ํํธ: document.getElementById("outputArea2") ์ฌ์ฉ
|
114 |
|
115 |
}
|
116 |
|
|
|
107 |
const textFieldValue = document.getElementById("text-to-textGenerationText2").value.trim();
|
108 |
|
109 |
const result = await generator(textFieldValue, {
|
110 |
+
max_new_tokens: 200,
|
111 |
+
temperature: 0.9,
|
112 |
+
repetition_penalty: 2.0,
|
113 |
+
no_repeat_ngram_size: 3,
|
114 |
+
// top_k: 20,
|
115 |
+
// do_sample: true,
|
116 |
});
|
117 |
+
document.getElementById("outputArea2").innerText = `Current Date: ${currentDate}\nCurrent Time: ${currentTime}\n\n${JSON.stringify(result, null, 2)}`;
|
|
|
118 |
|
119 |
}
|
120 |
|