Mbonea commited on
Commit
5f0b5f5
·
1 Parent(s): e73587d
Files changed (1) hide show
  1. app.js +1 -1
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(__dirname, "temp_image.jpg");
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