GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - Ankit-Navrang-Meshram/image-caption-app

BranchesTags
Open more actions menu

Latest commit

 

History

3 Commits
3 Commits

Folders and files

NameName
Last commit message
Last commit date
app
app
 
 
frontend
frontend
 
 
.gitignore
.gitignore
 
 
Dockerfile
Dockerfile
 
 
README.md
README.md
 
 
docker-compose.yml
docker-compose.yml
 
 
requirements.txt
requirements.txt
 
 

Repository files navigation

šŸ–¼ļø AI Image Captioning & Speech App

A full-stack AI application that generates descriptive captions for images.

Built with FastAPI (Backend), Streamlit (Frontend), and Docker.

šŸš€ Features

  • AI Image Captioning: Uses the Salesforce/blip-image-captioning-base model to analyze images.
  • Microservices Architecture: Backend and Frontend are decoupled.
  • Containerized: Fully wrapped in Docker for easy deployment.

šŸ› ļø Tech Stack

  • Model: Hugging Face Transformers (BLIP)
  • Backend: FastAPI, Uvicorn
  • Frontend: Streamlit
  • Deployment: Docker & Docker Compose

šŸ“¦ How to Run (Recommended)

The easiest way to run this app is using Docker.

  1. Clone the repository:
    git clone https://github.com/Ankit-Navrang-Meshram/image-caption-app.git
    cd image-caption-app
    

2. **Run with Docker Compose:**
```bash
docker-compose up --build

  1. Open the App:
  • Frontend: http://localhost:8501
  • Backend Docs: http://localhost:8000/docs

šŸ”§ How to Run Locally (Without Docker)

If you prefer running it manually, you need two terminal windows.

1. Setup Environment

python -m venv venv
source venv/bin/activate  # On Windows: venv\Scripts\activate
pip install -r requirements.txt

2. Start Backend (Terminal 1)

uvicorn app.main:app --reload --port 8000

3. Start Frontend (Terminal 2) Note: You may need to update API_URL in frontend/ui.py to http://127.0.0.1:8000/predict if it's set to the Docker hostname.

streamlit run frontend/ui.py

šŸ“‚ Project Structure

ā”œā”€ā”€ app/
│   ā”œā”€ā”€ main.py          # FastAPI endpoints
│   └── model.py         # AI Model logic
ā”œā”€ā”€ frontend/
│   └── ui.py            # Streamlit Interface
ā”œā”€ā”€ Dockerfile           # Docker instructions
ā”œā”€ā”€ docker-compose.yml   # Orchestration
ā”œā”€ā”€ requirements.txt     # Dependencies
└── README.md
'''

About

No description, website, or topics provided.

Resources

Readme
Activity

Stars

0 stars

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800Ɨ600. No cookies required.