pal2004/Vlm-search
1
๐ VLM Cloud Image Search
Search through images from cloud sources using AI-powered content recognition
This application uses OpenAI's CLIP (Contrastive Language-Image Pre-training) model to understand image content and find matches from various cloud sources.
โจ Features
- ๐ Cloud Image Fetching: Load images from URLs, Google Drive, local files
- ๐ค AI Content Search: Describe what you're looking for in natural language
- ๐ Filename Search: Search by exact or partial filename
- ๐ Similarity Scoring: See how confident the AI is about matches
- ๐ผ๏ธ Image Preview: View results immediately
- โก Smart Caching: Images cached for faster repeated searches
- ๐ฑ Responsive Design: Works on desktop and mobile
๐ How to Use
1. Add Image Sources
In the "Image Sources" box, add one source per line:
https://example.com/banana.jpg
https://drive.google.com/file/d/1ABC123DEF456/view
/path/to/local/cat.jpg
https://picsum.photos/400/3002. Search Images
Content Search (AI)
- Type descriptions like: "yellow fruit", "cute animal", "red car"
- The AI will analyze image content and find matches
- See similarity scores and confidence levels
Filename Search
- Type exact filenames: "banana.jpg", "cat.png"
- Or partial names: "banana", "cat"
- Perfect for finding specific files
3. View Results
- See the matched image
- Check similarity score and confidence
- View source information
๐ Supported Cloud Sources
- Direct URLs:
https://example.com/image.jpg - Google Drive:
https://drive.google.com/file/d/FILE_ID/view - Local Files:
/path/to/image.jpg - Base64:
data:image/jpeg;base64,...
๐ ๏ธ Technical Details
- Model: OpenAI CLIP ViT-Base-Patch16
- Framework: Gradio
- Backend: PyTorch + Transformers
- Deployment: Hugging Face Spaces
- Caching: Local image caching for performance
๐ง Local Development
pip install -r requirements.txt
python app.py๐ License
MIT License - feel free to use and modify!
