jclyo1 commited on
Commit
8ff02a8
1 Parent(s): bce1681
Files changed (1) hide show
  1. 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
- alert(resp);
44
- document.getElementById("ouptput").src = resp;
 
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);