Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to change settings when installed via pip? #162

Open
EliasPereirah opened this issue Jun 1, 2024 · 4 comments
Open

How to change settings when installed via pip? #162

EliasPereirah opened this issue Jun 1, 2024 · 4 comments

Comments

@EliasPereirah
Copy link

EliasPereirah commented Jun 1, 2024

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

@huangh12
Copy link

I am also puzzled by this..

@gmotta
Copy link

gmotta commented Jun 12, 2024

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:

@Matthijz98
Copy link

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

@smortezah
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants