Skip to main content

VisionAPI - a Python library for GPT-Based Vision Models inference

Project description

VisionAPI 👀 🚧

Hey there

This is a Work In Progress Project. The goal is to bring GPT-based Models to a simple API

How to use

Installation
pip install visionapi
Authentication
export OPENAI_API_KEY=<your key>
Image Inference

We can use an image url, local image path or numpy array to make an inference.

import VisionAPI

inference_endpoint = VisionAPI.Inference()

image = "https://upload.wikimedia.org/wikipedia/commons/thumb/d/dd/Gfp-wisconsin-madison-the-nature-boardwalk.jpg/2560px-Gfp-wisconsin-madison-the-nature-boardwalk.jpg"

prompt = "Describe the image"

response = inference_endpoint.image_inference(image, prompt)

print(response)
Video Inference
import VisionAPI

inference_endpoint = VisionAPI.Inference()

prompt = "These are frames from a video that I want to upload. Generate a compelling description that I can upload along with the video."

video = "video.mp4"

response = inference_endpoint.video_inference(video, prompt)

print(response)

Contribute to this project by adding more models and features.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

VisionAPI-0.1.1.tar.gz (4.1 kB view details)

Uploaded Source

Built Distribution

VisionAPI-0.1.1-py3-none-any.whl (4.5 kB view details)

Uploaded Python 3

File details

Details for the file VisionAPI-0.1.1.tar.gz.

File metadata

  • Download URL: VisionAPI-0.1.1.tar.gz
  • Upload date:
  • Size: 4.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.6

File hashes

Hashes for VisionAPI-0.1.1.tar.gz
Algorithm Hash digest
SHA256 73a6744b922ec13907479fe145e2f2cfb8c245287e818d37a650e654638bbf59
MD5 933f1063de4397675ab162b967ab1778
BLAKE2b-256 36d5ead565f6bd6247c4aebc221b4da1b183629ea81d7c91c80a56393b1c8df7

See more details on using hashes here.

File details

Details for the file VisionAPI-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: VisionAPI-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 4.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.6

File hashes

Hashes for VisionAPI-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 12ecab119221f1c32b702ce54c63bb9aa48e80512440e1a31de80f973c9662f6
MD5 9394ed3bd3d8f14e2f901c2d7d37ecdc
BLAKE2b-256 571aa4140ec2cd01713550840462975d75b28362fc843ba16a43786d00327687

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page