seonoh12 commited on
Commit
7aa454a
โ€ข
1 Parent(s): 9fdce57

Update text-to-text-generation.html

Browse files
Files changed (1) hide show
  1. text-to-text-generation.html +5 -0
text-to-text-generation.html CHANGED
@@ -107,8 +107,13 @@
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
 
 
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
  // To-Do: generator ๊ฐ์ฒด์— temperature ํŒŒ๋ผ๋ฏธํ„ฐ ๊ฐ’์„ ์ง€์ •ํ•˜์‹ญ์‹œ์˜ค.
115
  });
116
+ document.getElementById("outputArea2").innerText = JSON.stringify(result, null, 2);
117
  // To-Do: result์˜ ๊ฐ’์„ stringd์œผ๋กœ ๋ณ€ํ™˜ํ•˜์—ฌ outputArea2์— ์ถœ๋ ฅํ•˜์‹ญ์‹œ์˜ค.
118
  // ํžŒํŠธ: document.getElementById("outputArea2") ์‚ฌ์šฉ
119