Spaces:
Sleeping
Sleeping
Update server.js
Browse files
server.js
CHANGED
@@ -73,11 +73,12 @@ app.post('/gen', upload.single('image'), async (req, res) => {
|
|
73 |
"type": "text",
|
74 |
"text": prompt,
|
75 |
},
|
76 |
-
{
|
77 |
-
"type": "image_url",
|
78 |
-
"image": img,
|
79 |
-
},
|
80 |
],
|
|
|
|
|
|
|
|
|
|
|
81 |
}
|
82 |
],
|
83 |
};
|
|
|
73 |
"type": "text",
|
74 |
"text": prompt,
|
75 |
},
|
|
|
|
|
|
|
|
|
76 |
],
|
77 |
+
},
|
78 |
+
|
79 |
+
{
|
80 |
+
"role": "user",
|
81 |
+
"content": img,
|
82 |
}
|
83 |
],
|
84 |
};
|