File size: 1,743 Bytes
5adc220
e9b3146
 
 
 
 
 
 
5adc220
 
 
 
5537a5d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
e9b3146
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
---
title: Retrieval AI
emoji: 🖼️
colorFrom: blue
colorTo: purple
sdk: gradio
sdk_version: 5.15.0
app_file: app.py
pinned: false
---

 
 # Retrieval-AI

## Overview
Retrieval-AI is a simple image retrieval application using a CLIP model and FAISS indexing. It allows users to search for images based on text queries and provides accessibility features such as dark mode and speech-to-text for visually impaired users.

## Features
Text-based Image Search: Users can input a text query to find matching images.
Adjustable Results Count: Users can select how many results to display.
Example Queries: Predefined queries help users get started.
Dark Mode Support: Enhances usability in low-light conditions.
Speech-to-Text Input: Allows visually impaired users to speak their queries instead of typing.

## Installation
### Prerequisites
Python 3.8+
Required dependencies (see `requirements.txt` if available)

### Setup
1. Clone the repository:
   
   git clone https://github.com/yourusername/retrieval-ai.git
   cd retrieval-ai
   
2. Install dependencies:
   
   pip install -r requirements.txt
   
3. Run the application:
   
   python app.py
  
4. Open the provided URL in a browser (e.g., `http://127.0.0.1:7860`).

## Usage
1. Enter a text query or use speech input.
2. Adjust the number of results (1-10).
3. View the matched images in the results gallery.

## Accessibility Features
Dark Mode: Automatically adapts the UI for better readability in dark environments.
Speech-to-Text: Allows users to dictate their search queries for improved accessibility.

## License
This project is open-source under the MIT License.

## Contact
For any inquiries or contributions, please reach out to Joyce Nhlengetwa at [email protected].