Spaces:
Running
Running
Update _tgen.html
Browse files- _tgen.html +3 -1
_tgen.html
CHANGED
@@ -100,6 +100,8 @@
|
|
100 |
|
101 |
async function generateText2() {
|
102 |
const textFieldValue = document.getElementById("text-to-textGenerationText2").value.trim();
|
|
|
|
|
103 |
const result = await generator(textFieldValue, {
|
104 |
max_new_tokens: 200,
|
105 |
temperature: 0.9,
|
@@ -108,7 +110,7 @@
|
|
108 |
// top_k: 20,
|
109 |
// do_sample: true,
|
110 |
});
|
111 |
-
document.getElementById("outputArea2").innerText = JSON.stringify(result, null, 2)
|
112 |
}
|
113 |
// Initialize the model after the DOM is completely loaded
|
114 |
window.addEventListener("DOMContentLoaded", initializeModel);
|
|
|
100 |
|
101 |
async function generateText2() {
|
102 |
const textFieldValue = document.getElementById("text-to-textGenerationText2").value.trim();
|
103 |
+
const currentDate = new Date().toDateString();
|
104 |
+
const currentTime = new Date().toLocaleTimeString();
|
105 |
const result = await generator(textFieldValue, {
|
106 |
max_new_tokens: 200,
|
107 |
temperature: 0.9,
|
|
|
110 |
// top_k: 20,
|
111 |
// do_sample: true,
|
112 |
});
|
113 |
+
document.getElementById("outputArea2").innerText = `Current Date: ${currentDate}\nCurrent Time: ${currentTime}\n\n${JSON.stringify(result, null, 2)}`;
|
114 |
}
|
115 |
// Initialize the model after the DOM is completely loaded
|
116 |
window.addEventListener("DOMContentLoaded", initializeModel);
|