AI-powered customization platform for furniture and virtual dressing.
-
Clone the repository:
git clone <repository_url> cd Custom-Creations/backend
-
Create a virtual environment (recommended):
python3 -m venv venv source venv/bin/activate # On Linux/macOS venv\Scripts\activate # On Windows
-
Install dependencies:
pip install Flask flask-cors Werkzeug google-generativeai
-
Set your Gemini API key: Replace
"YOUR API KEY"with your actual Gemini API key inbackend/app.py. -
Create the uploads directory:
mkdir images
-
Navigate to the frontend directory:
cd ../frontend -
Install dependencies:
npm install
-
Run the Flask app:
cd ../backend python app.pyThe backend server will start, typically on port 5000.
-
POST /predictendpoint: This endpoint expects an image file to be sent as part of amultipart/form-datarequest. It analyzes the image using the Gemini AI model to provide furniture/item suggestions.Request Body (multipart/form-data):
image: The image file.
Response (JSON):
{ "prediction": "..." }
-
Start the React app:
cd ../frontend npm startThis will start the development server, and the app will be accessible at
http://localhost:3000. -
Functionality:
The frontend provides the following routes/functionality, according to the available files:
/: HomePage/customizer: MainPage (likely furniture customization)/model/:modelUrl: ModelDetailPage/room-selection: RoomSelection/furniture-selection: FurnitureSelection/room-editor: RoomEditor/room: Room/try-on: TryOn (Virtual Dressing Room)/dress-gallery/:gender: DressGallery/model-display/:dressModelUrl: ModelDisplay/superimpose:SuperImpose
- Fork the repository.
- Create a new branch for your feature or bug fix.
- Make your changes and commit them with descriptive messages.
- Push your changes to your fork.
- Submit a pull request.
MIT