marker icon indicating copy to clipboard operation
marker copied to clipboard

How to change settings when installed via pip?

Open EliasPereirah opened this issue 1 year ago • 4 comments

readme.md says: Inspect the settings in marker/settings.py. You can override any settings with environment variables. But how can I find the marker/settings.py file or is this only valid for download via git? Sorry, noob question, I don't have much experience with Python

EliasPereirah avatar Jun 01 '24 17:06 EliasPereirah

I am also puzzled by this..

huangh12 avatar Jun 10 '24 16:06 huangh12

A command similar to: pip show marker-pdf

Should give you what you are looking for:

In my case: @ markerexperiments % python3 -m pip show marker-pdf Name: marker-pdf Version: 0.2.6 Summary: Convert PDF to markdown with high speed and accuracy. Home-page: https://github.com/VikParuchuri/marker Author: Vik Paruchuri Author-email: [email protected] License: GPL-3.0-or-later Location: /Users//.pyenv/versions/3.9.19/lib/python3.9/site-packages Requires: filetype, ftfy, grpcio, numpy, pdftext, Pillow, pydantic, pydantic-settings, python-dotenv, rapidfuzz, ray, regex, scikit-learn, surya-ocr, tabulate, texify, torch, tqdm, transformers Required-by:

gmotta avatar Jun 12 '24 22:06 gmotta

You can look at https://github.com/VikParuchuri/marker/blob/master/marker/settings.py for what the default settings are. Then u can overwrite one by setting a env (google that for your platform) The text in the README.md could make that a bit more clear and support for passing all options as arguments would be nice

Matthijz98 avatar Jun 27 '24 13:06 Matthijz98

It would be nice to have a TOML config file, e.g. config.toml, instead of changing the settings.py file.

smortezah avatar Jul 04 '24 12:07 smortezah