Spaces:
Sleeping
Sleeping
A newer version of the Gradio SDK is available:
5.28.0
metadata
title: Multi-Modal AI Demo
emoji: 🤖
colorFrom: blue
colorTo: purple
sdk: gradio
sdk_version: 5.20.1
app_file: app.py
pinned: false
Multi-Modal AI Demo
This project demonstrates the use of multi-modal AI capabilities using Hugging Face pretrained models. The application provides the following features:
- Image Captioning: Generate descriptive captions for images
- Visual Question Answering: Answer questions about the content of images
- Sentiment Analysis: Analyze the sentiment of text inputs
Requirements
- Python 3.8+
- Dependencies listed in
requirements.txt
Local Installation
To run this project locally:
- Clone this repository
- Install dependencies:
pip install -r requirements.txt
- Run the application:
python app.py
Then open your browser and navigate to the URL shown in the terminal (typically http://127.0.0.1:7860).
Deploying to Hugging Face Spaces
This project is configured for direct deployment to Hugging Face Spaces. The core files needed for deployment are:
app.py
- Main application filemodel_utils.py
- Utility functions for model operationsrequirements.txt
- Project dependenciesREADME.md
- This documentation file with Spaces configuration
Models Used
This demo uses the following pretrained models from Hugging Face:
- Image Captioning:
nlpconnect/vit-gpt2-image-captioning
- Visual Question Answering:
nlpconnect/vit-gpt2-image-captioning
(simplified) - Sentiment Analysis:
distilbert-base-uncased-finetuned-sst-2-english