Skip to content

Imrane-Benhaddouche/Prompt2Image-Generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

Prompt2Image-Generator

Prompt2Image-Generator converts text prompts into images using Hugging Face's sd-community/sdxl-flash model and a Gradio interface. API keys are securely managed via environment variables.

Installation

  1. Clone the repository:

    git clone https://github.com/yourusername/Prompt2Image-Generator.git
    cd Prompt2Image-Generator
  2. Install dependencies:
    pip install gradio requests huggingface_hub Pillow transformers

  3. Set your Hugging Face API key:
    export HF_API_KEY="your_api_key_here"

  4. Run the application:
    python app.py

About

Prompt2Image-Generator converts text prompts into images using Hugging Face's API and a Gradio interface. It securely manages API keys, delivering a reliable and user-friendly image generation experience.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages