Spaces:
Runtime error
A newer version of the Gradio SDK is available:
5.5.0
title: stable-diffusion-3
app_file: SD3.py
sdk: gradio
sdk_version: 4.26.0
Stable Diffusion 3 Text-to-Image Generator
This is a Python application that utilizes the Stable Diffusion 3 model to generate images from textual prompts. It provides a user-friendly interface built with Gradio, allowing users to enter a prompt, select a model, and choose an aspect ratio to generate an image.
Requirements
To run this application, you need to have the following dependencies installed:
- requests
- requests-toolbelt
- gradio
You can install these dependencies by running the following command:
pip install -r requirements.txt
Usage
- Clone this repository to your local machine.
- Install the required dependencies using the command mentioned above.
- Replace the
api_key
variable in theSD3.py
file with your actual Stability AI API key. - Run the
SD3.py
script using the following command:
python SD3.py
- The application will launch in your default web browser.
- Enter a text prompt describing the image you want to generate.
- Select the desired model (either "sd3" or "sd3-turbo").
- Choose the aspect ratio for the generated image.
- Click the "Submit" button to generate the image.
- The generated image will be displayed on the screen.
About Stable Diffusion 3
Stable Diffusion 3 is a state-of-the-art text-to-image generation model developed by Stability AI. It is capable of generating high-quality images from textual descriptions, allowing users to create visual content based on their imagination.
The model has been trained on a vast dataset of image-text pairs, enabling it to understand and generate images across a wide range of domains and styles. It uses a diffusion-based approach to iteratively refine the generated image, resulting in highly detailed and coherent visual outputs.
Stable Diffusion 3 offers two variants: "sd3" and "sd3-turbo". The "sd3" model is the standard version, while "sd3-turbo" is a more powerful and computationally intensive variant that can generate even higher-quality images.
Acknowledgements
This application is built using the Stability AI API and the Gradio library. We would like to thank the developers and contributors of these projects for their excellent work.
License
This project is licensed under the MIT License.