MJ106 commited on
Commit
fa07fb7
โ€ข
1 Parent(s): e2e8408

Update text-to-text-generation.html

Browse files
Files changed (1) hide show
  1. text-to-text-generation.html +9 -0
text-to-text-generation.html CHANGED
@@ -108,9 +108,18 @@
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
 
 
108
 
109
  const result = await generator(textFieldValue, {
110
  // To-Do: generator ๊ฐ์ฒด์— temperature ํŒŒ๋ผ๋ฏธํ„ฐ ๊ฐ’์„ ์ง€์ •ํ•˜์‹ญ์‹œ์˜ค.
111
+ const result = await generator(textFieldValue, {
112
+ max_new_tokens: 200,
113
+ temperature: 0.9,
114
+ repetition_penalty: 2.0,
115
+ no_repeat_ngram_size: 3,
116
+ // top_k: 20,
117
+ // do_sample: true,
118
  });
119
  // To-Do: result์˜ ๊ฐ’์„ stringd์œผ๋กœ ๋ณ€ํ™˜ํ•˜์—ฌ outputArea2์— ์ถœ๋ ฅํ•˜์‹ญ์‹œ์˜ค.
120
  // ํžŒํŠธ: document.getElementById("outputArea2") ์‚ฌ์šฉ
121
+ document.getElementById("outputArea2").innerText = `Current Date: ${currentDate}\nCurrent Time: ${currentTime}\n\n${JSON.stringify(result, null, 2)}`;
122
+
123
 
124
  }
125