Spaces:
Sleeping
Sleeping
dynamic
Browse files- static/script.js +3 -2
static/script.js
CHANGED
@@ -40,8 +40,9 @@ textGenForm.addEventListener('submit', async (event) => {
|
|
40 |
|
41 |
try {
|
42 |
const resp = await generateImage(textGenInput.value, inferenceSteps.value, model.value);
|
43 |
-
|
44 |
-
|
|
|
45 |
// document.getElementById("redirect-form").submit();
|
46 |
} catch (err) {
|
47 |
console.error(err);
|
|
|
40 |
|
41 |
try {
|
42 |
const resp = await generateImage(textGenInput.value, inferenceSteps.value, model.value);
|
43 |
+
const path = "/" + resp;
|
44 |
+
alert(path);
|
45 |
+
document.getElementById("outputImg").src = path;
|
46 |
// document.getElementById("redirect-form").submit();
|
47 |
} catch (err) {
|
48 |
console.error(err);
|