Spaces:
Sleeping
Sleeping
Delete README.md
Browse files
README.md
DELETED
|
@@ -1,99 +0,0 @@
|
|
| 1 |
-
# 🔍 OpenRouter AI Vision Interface
|
| 2 |
-
|
| 3 |
-
This is a Gradio-based web interface that allows you to analyze images using various AI models through the OpenRouter API. The application supports multiple vision-language models including Mistral, Gemini, Qwen, and Llama models.
|
| 4 |
-
|
| 5 |
-
## Features
|
| 6 |
-
|
| 7 |
-
- Upload and analyze images with AI models
|
| 8 |
-
- Choose from 7 different vision-language models:
|
| 9 |
-
- Mistral Small
|
| 10 |
-
- Kimi Vision
|
| 11 |
-
- Gemini Pro
|
| 12 |
-
- Qwen VL
|
| 13 |
-
- Mistral 3.1
|
| 14 |
-
- Gemma
|
| 15 |
-
- Llama 3.2 Vision
|
| 16 |
-
- Simple and intuitive user interface
|
| 17 |
-
- Example images included
|
| 18 |
-
- Ready for Hugging Face Spaces deployment
|
| 19 |
-
|
| 20 |
-
## Setup
|
| 21 |
-
|
| 22 |
-
### Prerequisites
|
| 23 |
-
|
| 24 |
-
- Python 3.8 or higher
|
| 25 |
-
- pip (Python package installer)
|
| 26 |
-
|
| 27 |
-
### Installation
|
| 28 |
-
|
| 29 |
-
1. Clone this repository or download the files
|
| 30 |
-
2. Navigate to the project directory
|
| 31 |
-
3. Install the required dependencies:
|
| 32 |
-
|
| 33 |
-
```bash
|
| 34 |
-
pip install -r requirements.txt
|
| 35 |
-
```
|
| 36 |
-
|
| 37 |
-
### Configuration
|
| 38 |
-
|
| 39 |
-
The OpenRouter API key is already included in the code. If you want to use your own API key, you can modify it in the `app.py` file.
|
| 40 |
-
|
| 41 |
-
## Usage
|
| 42 |
-
|
| 43 |
-
### Local Deployment
|
| 44 |
-
|
| 45 |
-
#### Option 1: Run with Python
|
| 46 |
-
|
| 47 |
-
1. Run the application:
|
| 48 |
-
|
| 49 |
-
```bash
|
| 50 |
-
python app.py
|
| 51 |
-
```
|
| 52 |
-
|
| 53 |
-
2. Open your web browser and navigate to the URL displayed in the terminal (usually http://127.0.0.1:7860)
|
| 54 |
-
|
| 55 |
-
#### Option 2: Run with Docker
|
| 56 |
-
|
| 57 |
-
1. Build and start the Docker container:
|
| 58 |
-
|
| 59 |
-
```bash
|
| 60 |
-
docker-compose up --build
|
| 61 |
-
```
|
| 62 |
-
|
| 63 |
-
2. Open your web browser and navigate to http://localhost:7860
|
| 64 |
-
|
| 65 |
-
#### Using the Application
|
| 66 |
-
|
| 67 |
-
1. Upload an image
|
| 68 |
-
2. Enter a question about the image
|
| 69 |
-
3. Select an AI model from the dropdown
|
| 70 |
-
4. Click "Analyze Image" to get the AI's response
|
| 71 |
-
|
| 72 |
-
### Hugging Face Spaces Deployment
|
| 73 |
-
|
| 74 |
-
This application is ready to be deployed on Hugging Face Spaces. You have two options for deployment:
|
| 75 |
-
|
| 76 |
-
#### Option 1: Manual Deployment
|
| 77 |
-
See the `DEPLOY_TO_HF.md` file for detailed instructions on how to deploy this application to Hugging Face Spaces manually.
|
| 78 |
-
|
| 79 |
-
#### Option 2: Docker Deployment
|
| 80 |
-
Hugging Face Spaces supports Docker-based deployments. To deploy using Docker:
|
| 81 |
-
|
| 82 |
-
1. Create a new Space on Hugging Face with Docker as the SDK
|
| 83 |
-
2. Push this repository to the Space, including the Dockerfile
|
| 84 |
-
3. Hugging Face will automatically build and deploy the Docker container
|
| 85 |
-
|
| 86 |
-
## Example Usage
|
| 87 |
-
|
| 88 |
-
The application includes example images that you can use to test the functionality. Click on any of the examples to load them automatically.
|
| 89 |
-
|
| 90 |
-
## Models
|
| 91 |
-
|
| 92 |
-
The following models are available:
|
| 93 |
-
|
| 94 |
-
- **Mistral Small**: A powerful language model with vision capabilities
|
| 95 |
-
- **Kimi Vision**: A specialized vision-language model
|
| 96 |
-
|
| 97 |
-
## License
|
| 98 |
-
|
| 99 |
-
This project is open source and available under the MIT License.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|