A full-stack application that utilizes Hugging Face's model for generating images based on user prompts.
- Features
- Tech Stack
- Installation
- Usage
- API Endpoints
- Frontend
- Backend
- Deployment
- Contributing
- License
-
Generate images using the Hugging Face API.
-
Store generated images in Firebase.
-
Responsive frontend built with React and Tailwind CSS.
-
Frontend: React, Vite, Tailwind CSS, Firebase.
-
Backend: Express, Hugging Face API, Axios, MongoDB, Nodemon.
- Clone the repository:
git clone https://github.com/SunkaraboinaPraveenKumar/Ai_Image_gen.git
- Navigate to the project directory:
cd frontend - Install dependencies for the frontend:
npm install
- Navigate to the backend:
cd backend - Install dependencies for the backend:
npm install
- Configure environment variables for the backend: Create a .env file in the backend directory and add your Firebase and Hugging Face API credentials.
To start the development servers:
For the frontend:
cd frontend
npm run devFor the backend:
cd backend
npm startAccess the application in your browser at http://localhost:5173 (frontend) and the backend API at http://localhost:8080/api/v1/dalle.
POST /api/v1/dalle- Generate an image based on a prompt.
The frontend is built with React and styled using Tailwind CSS. It communicates with the backend API to generate and display images.
The backend is built with Express and utilizes the Hugging Face inference API to generate images based on user input. All generated images are stored in Firebase.
Frontend: https://image-ai-front-end.vercel.app/
Backend: https://image-ai-backend-five.vercel.app/api/v1/dalle
Feel free to submit issues or pull requests if you would like to contribute to this project.
This project is licensed under the MIT License - see the LICENSE file for details.