first commit
Browse files
README.md
CHANGED
|
@@ -10,3 +10,31 @@ pinned: false
|
|
| 10 |
---
|
| 11 |
|
| 12 |
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 10 |
---
|
| 11 |
|
| 12 |
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
| 13 |
+
|
| 14 |
+
|
| 15 |
+
# 📌 Image & Text Embedding Search using CLIP and Pinecone
|
| 16 |
+
|
| 17 |
+
This project is a **Streamlit-based web application** that enables **image and text-based searches** using OpenAI's CLIP model and Pinecone for vector storage and retrieval.
|
| 18 |
+
|
| 19 |
+
## 🚀 Features
|
| 20 |
+
- **Text-to-Image Search**: Enter a text query to find similar images from the dataset.
|
| 21 |
+
- **Image-to-Image Search**: Upload an image to find visually similar images.
|
| 22 |
+
- **CLIP Model for Embeddings**: Uses `openai/clip-vit-base-patch32` to generate embeddings for text and images.
|
| 23 |
+
- **Pinecone Vector Search**: Stores and retrieves image embeddings efficiently.
|
| 24 |
+
- **Interactive UI**: Built with Streamlit for easy access and visualization.
|
| 25 |
+
|
| 26 |
+
## 🛠️ Installation
|
| 27 |
+
|
| 28 |
+
### 1️⃣ Clone the Repository
|
| 29 |
+
```sh
|
| 30 |
+
git clone https://github.com/your-username/image-text-search.git
|
| 31 |
+
cd image-text-search
|
| 32 |
+
|
| 33 |
+
|
| 34 |
+
flowchart TD
|
| 35 |
+
A[User Input] -->|Text Query| B[Embed Text with CLIP]
|
| 36 |
+
A -->|Upload Image| C[Embed Image with CLIP]
|
| 37 |
+
B --> D[Query Pinecone Index]
|
| 38 |
+
C --> D
|
| 39 |
+
D --> E[Retrieve Top-k Similar Images]
|
| 40 |
+
E --> F[Display Results in Streamlit UI]
|