Spaces:
Sleeping
Sleeping
Update README.md
Browse files
README.md
CHANGED
|
@@ -10,3 +10,51 @@ 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 |
+
# AI Image Comparator
|
| 15 |
+
|
| 16 |
+
This repository contains a Python application for comparing images using various AI models with the help of [Gradio](https://www.gradio.app/) for education and research purpose only.
|
| 17 |
+
|
| 18 |
+
## Table of Contents
|
| 19 |
+
|
| 20 |
+
- [Description](#description)
|
| 21 |
+
- [Usage](#usage)
|
| 22 |
+
- [License](#license)
|
| 23 |
+
- [Disclaimer](#disclaimer)
|
| 24 |
+
|
| 25 |
+
## Description
|
| 26 |
+
|
| 27 |
+
The AI Image Comparator is a Python application that uses several AI models to generate images based on a given prompt. It leverages Hugging Face's inference API for text-to-image generation. Gradio is used to create a user interface that allows users to enter a prompt and visualize the outputs from different AI models side by side.
|
| 28 |
+
|
| 29 |
+
## Usage
|
| 30 |
+
|
| 31 |
+
1. Clone the repository to your local machine:
|
| 32 |
+
```bash
|
| 33 |
+
git clone https://github.com/manan-garg/AI-image-comparator.git
|
| 34 |
+
cd AI-image-comparator
|
| 35 |
+
```
|
| 36 |
+
|
| 37 |
+
2. Requirements:
|
| 38 |
+
|
| 39 |
+
To run this application, you need to have the following installed:
|
| 40 |
+
- IPython
|
| 41 |
+
- requests
|
| 42 |
+
- gradio
|
| 43 |
+
|
| 44 |
+
You can install these dependencies using `pip` with the provided `requirements.txt` file:
|
| 45 |
+
```bash
|
| 46 |
+
pip install -r requirements.txt
|
| 47 |
+
```
|
| 48 |
+
|
| 49 |
+
3. Run the application:
|
| 50 |
+
```bash
|
| 51 |
+
python app.py
|
| 52 |
+
```
|
| 53 |
+
The application will launch, and you can interact with it using your web browser. Enter the [Hugging Face API key](https://huggingface.co/docs/api-inference/quicktour#get-your-api-token) and a prompt and click the "Submit" button to generate images using different AI models. Explore and compare the generated images in the Gradio user interface.
|
| 54 |
+
|
| 55 |
+
## License
|
| 56 |
+
This project is licensed under the MIT License.
|
| 57 |
+
|
| 58 |
+
## Disclaimer
|
| 59 |
+
- The AI Image Comparator tool is a demo project for education and research purpose only.
|
| 60 |
+
- Users should not use it for any other purpose.
|