Skip to content

Python SDK? #60

Description

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!

Activity

  1. amsword commented on Sep 4, 2024

    @amsword
    Contributor

    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions