Skip to main content

Zero-shot image classification using CLIP and Streamlit

Project description

CLIP Streamlit

A Streamlit application for zero-shot image classification using OpenAI's CLIP model.

Features

  • Zero-shot image classification
  • Interactive web interface
  • Support for custom labels
  • Confidence threshold adjustment
  • Visual results with bar charts

Installation

Simple installation:

pip install clip-streamlit

The package will automatically install CLIP when you first run the application.

Usage

Run the application:

clip-streamlit

The first time you run it, it will install CLIP if needed.

Or use it in your Python code:

from clip_streamlit import run_app

run_app()

Requirements

  • Python 3.7+
  • Streamlit
  • PyTorch
  • CLIP
  • Pillow

License

MIT License

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

clip_streamlit-1.0.0.tar.gz (5.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

clip_streamlit-1.0.0-py3-none-any.whl (6.2 kB view details)

Uploaded Python 3

File details

Details for the file clip_streamlit-1.0.0.tar.gz.

File metadata

  • Download URL: clip_streamlit-1.0.0.tar.gz
  • Upload date:
  • Size: 5.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.3

File hashes

Hashes for clip_streamlit-1.0.0.tar.gz
Algorithm Hash digest
SHA256 3bfe0f7436caeb2726ebf75a6ec9d0ec75ba8bde932886e3c86076d51b7f543c
MD5 e124fa238e46ebd06a7b63950c9c86a9
BLAKE2b-256 1698f85a095150d5b9d5a9c730104a68d6f936f0dbda42460fc0b2be80458da2

See more details on using hashes here.

File details

Details for the file clip_streamlit-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: clip_streamlit-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 6.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.3

File hashes

Hashes for clip_streamlit-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8e825d3ad2acf233125cfeadd7e27a8fab54a29f1452f173fe3e283e7a35d695
MD5 e28f0c46ded279a9ac121f3f97dae975
BLAKE2b-256 36b2b4101b7b677df58d78729965efd1b579938322e4aa6679167e711e8ec704

See more details on using hashes here.

Supported by

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