Spaces:
Runtime error
Runtime error
william commited on
Commit ·
6bcf543
1
Parent(s): 3167eea
token
Browse files
src/app/api/style-transform/route.ts
CHANGED
|
@@ -4,7 +4,7 @@ type Body = {
|
|
| 4 |
pic: string;
|
| 5 |
};
|
| 6 |
|
| 7 |
-
const HF_TOKEN = process.env.
|
| 8 |
|
| 9 |
export async function POST(req: Request) {
|
| 10 |
const body = (await req.json()) as Body;
|
|
@@ -12,7 +12,6 @@ export async function POST(req: Request) {
|
|
| 12 |
.request({
|
| 13 |
method: "post",
|
| 14 |
maxBodyLength: Infinity,
|
| 15 |
-
// url: "http://8.134.189.128:55233/style",
|
| 16 |
url: "https://sologenius-gen-ai.hf.space/style",
|
| 17 |
headers: {
|
| 18 |
"Content-Type": "application/json",
|
|
|
|
| 4 |
pic: string;
|
| 5 |
};
|
| 6 |
|
| 7 |
+
const HF_TOKEN = process.env.HF_TOKEN;
|
| 8 |
|
| 9 |
export async function POST(req: Request) {
|
| 10 |
const body = (await req.json()) as Body;
|
|
|
|
| 12 |
.request({
|
| 13 |
method: "post",
|
| 14 |
maxBodyLength: Infinity,
|
|
|
|
| 15 |
url: "https://sologenius-gen-ai.hf.space/style",
|
| 16 |
headers: {
|
| 17 |
"Content-Type": "application/json",
|