An AI-powered museum experience where artworks come alive through conversations with ghostly curators.
Explore famous masterpieces not just by looking, but by conversing with the ghostly curators who haunt the gallery halls. Witness clash of opinions in real-time debates, or summon the spirits trapped within the canvas.
Phantom Gallery utilizes a DigitalOcean Gradient Agent powered by the Llama 3.3 70B Instruct model. This agent is accessed via the OpenAI-compatible API. Both the orchestrator logic and the multi-turn debate flows use chat completions against that agent to dynamically route intents, construct personas, and maintain coherent multi-agent arguments.
Choose your guide through art history:
- Lorenzo (Renaissance): A poetic scholar who sees divine beauty in every stroke.
- Claude (Impressionist): A dreamer obsessed with fleeting light and emotion.
- Edmund (Victorian Critic): A stern judge who values technical mastery and moral virtue.
Real-Time AI Debate powered by Gradient Agents.
- Watch Lorenzo and Edmund argue over a masterpiece in real-time.
- Sequential Reasoning: 5-turn debate loop where agents respond to each other's points.
- Visual Drama: Dynamic "typing..." indicators and split-screen UI.
Don't just talk about the art. Talk to it.
- Switch modes to summon the entity painted in the canvas.
- The AI adopts the persona of the subject (e.g., the weary peasant, the proud noble) based on visual context.
Before you start, make sure you have the following installed on your computer:
- Node.js (Version 18 or higher)
- We use Node.js to run both our backend server and frontend website.
- Download Node.js here.
- Git
- Required to download the project files.
- Download Git here.
- DigitalOcean Gradient Credentials
- Required to power the AI agents. Without these, the ghosts cannot speak.
- Open your Command Prompt (Windows) or Terminal (Mac/Linux).
- Copy and paste the following command and press Enter:
(Note: Replace with the actual repository URL once updated)
git clone https://github.com/your-username/Phantom-Gallery.git
- Go into the project folder:
cd Phantom-Gallery
The project needs access to DigitalOcean Gradient to run the agents.
- In the project folder, create a new file named
.env.local. - Open this file with any text editor (Notepad, VS Code, etc.).
- Add the following lines, replacing the placeholder values with your actual Gradient access key and endpoint:
GRADIENT_ACCESS_KEY=your_gradient_access_key_here GRADIENT_ENDPOINT=your_gradient_endpoint_here
- Save and close the file.
- In your terminal, navigate to the backend folder:
cd backend - Install the necessary dependencies:
npm install
- Start the server:
You should see a message saying "Server running on port 8080". Keep this terminal window OPEN.
node index.js
- Open a NEW terminal window (do not close the previous one).
- Navigate to the frontend folder:
(Adjust the path if you are in a different folder)
cd frontend - Install the tools:
npm install
- Start the website:
npm run dev
- Open your web browser (Chrome, Edge, Safari).
- Type in the address: http://localhost:3000
- Enjoy the experience!
- Backend Port: 8080
- Frontend Port: 3000
- Common Issues:
- Error: "Address in use" -> Make sure no other program is using port 3000 or 8080.
- Ghosts not replying -> Check your
.env.localfile and ensure your Gradient credentials are correct.
Created by Hammad Khan