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

Python SDK? #60

Open
sudoku-lord opened this issue Dec 21, 2023 · 1 comment
Open

Python SDK? #60

sudoku-lord opened this issue Dec 21, 2023 · 1 comment

Comments

@sudoku-lord
Copy link

Hi! This is a superb tool. I was wondering if any kind of Python SDK or integration is available––something which would make GIT easier to use in a piece of code as opposed to just on the command line. Thanks so much!

@amsword
Copy link
Contributor

amsword commented Sep 4, 2024

the command line is actually more about to call a function, e.g. you can call the function of inference() rather than using the command line. the inference code has already been integrated in huggingface, and thus all the tools in huggingface may be applicable. please also feel free to share your ideas on how the python sdk would look like.

AZFUSE_TSV_USE_FUSE=1 python -m generativeimage2text.inference -p "{'type': 'test_git_inference_single_image', \
      'image_path': 'aux_data/images/1.jpg', \
      'model_name': 'GIT_BASE', \
      'prefix': '', \
}"

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

2 participants