Spaces:
Running
Running
metadata
title: Panno-AI-API
emoji: πΈ
colorFrom: blue
colorTo: indigo
sdk: docker
pinned: false
PannoAI - AI-Powered 3D Panorama Generator
PannoAI is a cutting-edge web application that transforms standard indoor photos into immersive 360Β° panoramas using Google's Gemini 2.x Multimodal AI. Designed for real estate, interior design, and digital twins, it provides a seamless experience from image upload to interactive 3D exploration.
π Features
- AI-Driven Scene Analysis: Leverages
gemini-2.5-flash-imageto analyze uploaded photos and identify flooring, lighting, layout, and architectural styles. - Immersive 3D Viewer: Built with Three.js and React Three Fiber, featuring smooth orbit controls, auto-rotation, and responsive design.
- Intelligent Fallback System: Implements a robust API key rotation mechanism to bypass quota limits and ensuring high availability.
- Premium Aesthetics: A modern, glassmorphic UI built with Next.js 15, Tailwind CSS, and Framer Motion.
- Offline Reliability: Integrated stable fallback textures and local storage history for a consistent user experience.
π οΈ Tech Stack
- Framework: Next.js 15 (App Router)
- 3D Engine: Three.js with @react-three/fiber
- AI Integration: Google Gemini API
- Styling: Tailwind CSS
- Animations: Framer Motion
- Icons: Lucide React
π¦ Getting Started
Prerequisites
- Node.js 18.x or later
- A Google AI (Gemini) API Key
Installation
Clone the repository:
git clone https://github.com/NZLouislu/panno-ai.git cd panno-aiInstall dependencies:
npm installConfigure environment variables: Create a
.envfile in the root directory:Gemini_API=your_primary_api_key # Optional: Add multiple keys for rotation AULouis_Gemini_API=your_backup_key Blog_Gemini_API=your_backup_key Tasky_Gemini_API=your_backup_keyRun the development server:
npm run devOpen http://localhost:3000 in your browser.
π Usage
- Upload: Click the upload area or drag and drop indoor photos of a room.
- Generate: Click "Create 360Β° Panorama". PannoAI will analyze the images and map them to a high-quality 360Β° scene.
- Explore: Use your mouse or touch to look around the generated 3D room.
- History: Your previous creations are saved and can be accessed from the "Your Gallery" section.
π License
This project is licensed under the MIT License - see the LICENSE file for details.