temp dir
Browse files
app.js
CHANGED
@@ -438,7 +438,7 @@ app.post("/highlight", express.json(), async (req, res) => {
|
|
438 |
|
439 |
try {
|
440 |
// Download the image
|
441 |
-
const tempImagePath = path.join(
|
442 |
await downloadImage(imageUrl, tempImagePath);
|
443 |
|
444 |
// Run OCR
|
|
|
438 |
|
439 |
try {
|
440 |
// Download the image
|
441 |
+
const tempImagePath = path.join(os.tmpdir(), "temp_image.jpg");
|
442 |
await downloadImage(imageUrl, tempImagePath);
|
443 |
|
444 |
// Run OCR
|