/cover-art-ai

Primary LanguageJavaScriptMIT LicenseMIT

Album Cover AI

Album Cover AI is a web application that leverages Hugging Face's Stable Diffusion 2.1 model to create unique album cover art based on user input. This repository contains both frontend and backend code for the application.

Features

  • Generate distinctive album cover art from user-provided text.
  • Save the generated album cover art locally.

Technologies Used

  • FastAPI: A modern, high-performance web framework for building APIs with Python 3.7+.
  • React: A JavaScript library for constructing user interfaces.
  • axios: A promise-based HTTP client for the browser and Node.js.
  • Hugging Face: Offers a vast collection of pre-trained models for natural language processing and computer vision.

Getting Started

Prerequisites

Installation

Backend

  1. Navigate to the backend directory.

    cd backend
  2. Install dependencies.

    pip install -r requirements.txt
  3. Run the FastAPI server.

    uvicorn main:app --reload

Frontend

  1. Navigate to the frontend directory.

    cd frontend
  2. Install dependencies.

    npm install
  3. Run the React app.

    npm run dev

GENERATE ACCESS TOKEN TO USE FROM HUGGING FACE AND UPDATE IN main.py in backend.

image

  1. Open your browser and visit http://localhost:3000 to access the application.

Usage

  1. Enter text in the input field on the frontend.
  2. Click the "Search" button to generate album cover art.
  3. The generated album cover art will be displayed below.

Folder Structure

  • backend: Contains the FastAPI backend code.
  • frontend: Contains the React frontend code.

Screenshot

image

License

This project is licensed under the MIT License - see the LICENSE file for details.