Spaces:
Sleeping
Sleeping
Upload app.js
Browse files
app.js
CHANGED
@@ -56,7 +56,7 @@ app.post("/deem/v1/chat/completions", async (req, res) => {
|
|
56 |
fs.writeFileSync(filePath, imageBuffer);
|
57 |
|
58 |
// 构建本地图片URL
|
59 |
-
const imgUrl =
|
60 |
|
61 |
console.log(imgUrl);
|
62 |
|
@@ -115,7 +115,7 @@ app.post("/deem/v1/images/generations", async (req, res) => {
|
|
115 |
fs.writeFileSync(filePath, imageBuffer);
|
116 |
|
117 |
// 构建本地图片URL
|
118 |
-
const imgUrl =
|
119 |
|
120 |
console.log(imgUrl);
|
121 |
|
|
|
56 |
fs.writeFileSync(filePath, imageBuffer);
|
57 |
|
58 |
// 构建本地图片URL
|
59 |
+
const imgUrl = `https://gitdeem-flux.hf.space/images/${fileName}`;
|
60 |
|
61 |
console.log(imgUrl);
|
62 |
|
|
|
115 |
fs.writeFileSync(filePath, imageBuffer);
|
116 |
|
117 |
// 构建本地图片URL
|
118 |
+
const imgUrl = `https://gitdeem-flux.hf.space/images/${fileName}`;
|
119 |
|
120 |
console.log(imgUrl);
|
121 |
|