boazchung commited on
Commit
d12ee61
1 Parent(s): d16c55a

Update _tgen.html

Browse files
Files changed (1) hide show
  1. _tgen.html +4 -1
_tgen.html CHANGED
@@ -91,10 +91,13 @@
91
  async function generateText() {
92
  const textFieldValue = document.getElementById("text-to-textGenerationText").value.trim();
93
  const currentDate = new Date().toDateString();
 
94
  const result = await generator(textFieldValue, {
95
  max_new_tokens: 100,
96
  });
97
- document.getElementById("outputArea").innerText = `Current Date: ${currentDate}\n\n${JSON.stringify(result, null, 2)}`;
 
 
98
  }
99
  async function generateText2() {
100
  const textFieldValue = document.getElementById("text-to-textGenerationText2").value.trim();
 
91
  async function generateText() {
92
  const textFieldValue = document.getElementById("text-to-textGenerationText").value.trim();
93
  const currentDate = new Date().toDateString();
94
+ const currentTime = new Date().toLocaleTimeString();
95
  const result = await generator(textFieldValue, {
96
  max_new_tokens: 100,
97
  });
98
+ document.getElementById("outputArea").innerText = `Current Date: ${currentDate}\nCurrent Time: ${currentTime}\n\n${JSON.stringify(result, null, 2)}`;
99
+ }
100
+
101
  }
102
  async function generateText2() {
103
  const textFieldValue = document.getElementById("text-to-textGenerationText2").value.trim();