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