Dubem is an AI assistant powered by Google's Gemini AI. You can interact with it through a modern web interface or a simple command-line tool.
Before you begin, you need to configure your Gemini API key.
- Get a Gemini API Key:
- Go to the Google AI for Developers website.
- Create an API key in Google AI Studio.
- Set the API Key as an Environment Variable:
- Linux/macOS:
export GEMINI_API_KEY='YOUR_API_KEY'
- Windows:
$env:GEMINI_API_KEY='YOUR_API_KEY'
YOUR_API_KEYwith the key you obtained. For persistent storage, add this line to your shell's startup file (e.g.,.bashrc,.zshrc, or your PowerShell profile). - Linux/macOS:
You can use Dubem in two ways:
The web application provides a user-friendly interface for interacting with the AI.
Installation:
- Install the Python backend dependencies:
pip install -r requirements.txt
- Install the JavaScript frontend dependencies:
cd frontend npm install
Running the Application: You need to run two processes in separate terminals.
-
Terminal 1: Start the Backend
python -m dubem.app
This will start the Flask server on
http://127.0.0.1:5000. -
Terminal 2: Start the Frontend
cd frontend npm startThis will open the web application in your browser at
http://localhost:5173.
For quick queries, you can use the original command-line interface.
Installation:
pip install -r requirements.txtUsage:
python -m dubem.main "Your coding question or prompt"For example:
python -m dubem.main "How do I reverse a list in Python?"