DeFactOfficial commited on
Commit
fba77c8
1 Parent(s): 122b61a

Update image.js

Browse files
Files changed (1) hide show
  1. image.js +1 -1
image.js CHANGED
@@ -111,7 +111,7 @@ const generateImage = async(requestPayload, res, responseFormat) => {
111
  // Send either the image directly or a link to the image
112
  if (responseFormat == "url") {
113
  res.setHeader("Content-Type", "application/json")
114
- res.json({"image_url": "http://localhost:8000/image_cache/"+ cachePath.split("/").at(-1)})
115
  res.end()
116
  } else {
117
  res.setHeader('Content-Type', 'image/png');
 
111
  // Send either the image directly or a link to the image
112
  if (responseFormat == "url") {
113
  res.setHeader("Content-Type", "application/json")
114
+ res.json({"image_url": "https://defactofficial-mmapi.hf.space/image_out/"+ cachePath.split("/").at(-1)})
115
  res.end()
116
  } else {
117
  res.setHeader('Content-Type', 'image/png');