Skip to content

AnjuMau8418/Text-To-Image-Generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

25 Commits
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ–ΌοΈ Text-to-Image Generation using Hugging Face API

πŸ“Œ Overview

This project generates images from text prompts using the Hugging Face Inference API. It is built with HTML, CSS, and JavaScript and provides a simple interface for users to input text and receive an AI-generated image.

πŸš€ Features

βœ… User-friendly interface to generate images from text prompts.
βœ… Uses the Hugging Face API for image generation.
βœ… Allows downloading generated images.
βœ… Responsive design for desktop and mobile users.

πŸ› οΈ Tech Stack

  • Frontend: HTML, CSS, JavaScript
  • API: Hugging Face Inference API

βš™οΈ Usage

  1. Enter a text prompt in the input field.
  2. Click "Generate" to fetch the AI-generated image.
  3. Download the generated image using the download button.
  4. Click "Reset" to clear the input and start again.

πŸ“Έ Screenshots

User Interface

Text-to-Image UI

Example Generated Image

Generated Image

πŸ”§ Installation & Setup

  1. Clone the repository:
    git clone https://github.com/AnjuMau8418/Text-To-Image-Generator.git
  2. Navigate into the project directory:
    cd Text-To-Image-Generator
  3. Open index.html in a browser to start using the tool.

πŸ”— API Integration

This project uses the Hugging Face Inference API for image generation. To integrate it:

  1. Get an API key from Hugging Face.
  2. Update the JavaScript file with your API key:
    const Key = "your_huggingface_api_key";

Releases

No releases published

Packages

 
 
 

Contributors