getomni-ai / zerox

PDF to Markdown with vision models
https://getomni.ai/ocr-demo
MIT License
6.68k stars 363 forks source link

Shorten the file path if there are url parameters #15

Closed annapo23 closed 2 months ago

annapo23 commented 3 months ago

If the file path is too large (the case when there are url parameters in the file path), we see the following error: ENAMETOOLONG: name too long, open '/tmp/zerox-temp-4660/.

We want to remove any url parameters from the file path.