Spaces:
Sleeping
Sleeping
T1ckbase
commited on
Commit
·
cd1d1c8
1
Parent(s):
1681ad8
main.ts
CHANGED
|
@@ -106,7 +106,7 @@ app.post('/v1/images/generations', async (c) => {
|
|
| 106 |
await Deno.writeFile(`./tmp/${fileName}`, new Uint8Array(image));
|
| 107 |
|
| 108 |
let data: any = {
|
| 109 |
-
url:
|
| 110 |
};
|
| 111 |
if (params.response_format === 'b64_json') {
|
| 112 |
data = {
|
|
|
|
| 106 |
await Deno.writeFile(`./tmp/${fileName}`, new Uint8Array(image));
|
| 107 |
|
| 108 |
let data: any = {
|
| 109 |
+
url: `${headers.get('Host')}/tmp/${fileName}`,
|
| 110 |
};
|
| 111 |
if (params.response_format === 'b64_json') {
|
| 112 |
data = {
|