Update index.js
Browse files
index.js
CHANGED
|
@@ -992,8 +992,8 @@ return res.json({message: "Success", code: 200, data:data})
|
|
| 992 |
// enabling fast uses a 384x384 model instead
|
| 993 |
fast: false,
|
| 994 |
});
|
| 995 |
-
res.set('Content-Type', 'application/octet-stream'); // Set content type untuk buffer
|
| 996 |
-
return res.
|
| 997 |
} catch (e) {
|
| 998 |
console.log(e);
|
| 999 |
return res.json({ message: "Internal Server Error",
|
|
|
|
| 992 |
// enabling fast uses a 384x384 model instead
|
| 993 |
fast: false,
|
| 994 |
});
|
| 995 |
+
// res.set('Content-Type', 'application/octet-stream'); // Set content type untuk buffer
|
| 996 |
+
return res.json({message:"Success", code : 200, data: await fileDitch(output)});
|
| 997 |
} catch (e) {
|
| 998 |
console.log(e);
|
| 999 |
return res.json({ message: "Internal Server Error",
|