A simple web application that analyzes multiple-choice questions from images using Anthropic's Claude 3 Opus model.
- Python 3.7+
- An Anthropic API key (from console.anthropic.com)
- A device with a camera (for taking photos of questions)
-
Install required Python packages:
pip install Flask requests
-
Set your Anthropic API key:
- On macOS/Linux:
export ANTHROPIC_API_KEY='your-api-key-here'
- On Windows (Command Prompt):
set ANTHROPIC_API_KEY=your-api-key-here
- On Windows (PowerShell):
$env:ANTHROPIC_API_KEY="your-api-key-here"
- On macOS/Linux:
-
Set your Google AI API key:
- On macOS/Linux:
export GOOGLE_AI_API_KEY='your-api-key-here'
- On Windows (Command Prompt):
set GOOGLE_AI_API_KEY=your-api-key-here
- On Windows (PowerShell):
$env:GOOGLE_AI_API_KEY="your-api-key-here"
- On macOS/Linux:
-
Start the server:
python app.py
-
The server will start and display a local IP address (e.g.,
http://192.168.x.x:5000). -
On your mobile device (connected to the same WiFi network as your computer), open a web browser and navigate to the displayed IP address and port.
- Tap the "Take/Select Photo" button on the web page.
- Take a photo of a multiple-choice question or select an existing photo from your device.
- The app will analyze the image and display the most likely correct answer.
- This tool is for educational purposes only.
- Using this tool for academic dishonesty is strictly discouraged.
- You are responsible for any API usage costs from Anthropic.
- The tool uses Claude 3 Opus model, which provides high-quality analysis of images.
- If the app doesn't work, ensure:
- Your device is connected to the same WiFi network as the computer running the server.
- The server is running and accessible from your network.
- You have a valid OpenAI API key set in your environment variables.
- You have sufficient credits in your OpenAI account.