Spaces:
Build error
Build error
Thank you @Kakulukian
Browse files
server.ts
CHANGED
@@ -53,6 +53,7 @@ app.post("/", async (req, res) => {
|
|
53 |
method: "POST",
|
54 |
headers: {
|
55 |
Authorization: `Bearer ${process.env.HF_TOKEN}`,
|
|
|
56 |
},
|
57 |
body: JSON.stringify({ comment: continuationText }),
|
58 |
});
|
|
|
53 |
method: "POST",
|
54 |
headers: {
|
55 |
Authorization: `Bearer ${process.env.HF_TOKEN}`,
|
56 |
+
"Content-Type": "application/json",
|
57 |
},
|
58 |
body: JSON.stringify({ comment: continuationText }),
|
59 |
});
|