|
1 | 1 | # ClaudeComputerUseBeta-Win64 |
2 | 2 |
|
3 | | -# Beta trial code for the Claude 3.5 Sonnet Computer Use (Beta) on Win64. |
| 3 | +Beta trial code for the **Claude 3.5 Sonnet Computer Use (Beta) on __Win64__**. |
4 | 4 |
|
5 | | -##### As noted in the Anthropic Computer Use (Beta) Documentation, it is recommended that the Computer Use to be ran in Virtual Machines. |
| 5 | +As noted in the [Anthropic Computer Use (Beta) Documentation](https://docs.anthropic.com/en/docs/build-with-claude/computer-use), it is recommended that the Computer Use to be ran in Virtual Machines. |
6 | 6 |
|
7 | | -For Docker based Computer Use (Beta), please visit https://github.com/anthropics/anthropic-quickstarts/tree/main/computer-use-demo. |
| 7 | +For Docker based Computer Use (Beta), please visit [Anthropic Computer Use (Beta)](https://github.com/anthropics/anthropic-quickstarts/tree/main/computer-use-demo). |
8 | 8 |
|
| 9 | +Participation is welcomed. Currently facing many issues with calibration of the awaiting time for the actions to complete and the accuracy of the goal recognition. |
9 | 10 |
|
10 | | -# Step 1. main.py - insert your Claude API Key, and press Initlialize. |
| 11 | +## Installation and Setup |
| 12 | + |
| 13 | +1. Clone the repository: |
| 14 | + ``` |
| 15 | + git clone https://github.com/MinjaeKIM753/ClaudeComputerUseBeta-Win64.git |
| 16 | + cd ClaudeComputerUseBeta-Win64 |
| 17 | + ``` |
| 18 | + |
| 19 | +2. Create a virtual environment (optional but recommended): |
| 20 | + ``` |
| 21 | + python -m venv venv |
| 22 | + ``` |
| 23 | + |
| 24 | +3. Activate the virtual environment: |
| 25 | + - On Windows: |
| 26 | + ``` |
| 27 | + venv\Scripts\activate |
| 28 | + ``` |
| 29 | + - On macOS and Linux: |
| 30 | + ``` |
| 31 | + source venv/bin/activate |
| 32 | + ``` |
| 33 | +
|
| 34 | +4. Install the required packages: |
| 35 | + ``` |
| 36 | + pip install -r requirements.txt |
| 37 | + ``` |
| 38 | +
|
| 39 | +5. Set up your Anthropic API key: |
| 40 | + - Create a `.env` file in the project root directory |
| 41 | + - Add your API key to the file: |
| 42 | + ``` |
| 43 | + ANTHROPIC_API_KEY=your_api_key_here |
| 44 | + ``` |
| 45 | +
|
| 46 | +6. Run the application: |
| 47 | + ``` |
| 48 | + python main.py |
| 49 | + ``` |
| 50 | +
|
| 51 | +Note: Make sure you have Python 3.7 or higher installed on your system. |
| 52 | +
|
| 53 | +## Usage |
| 54 | +
|
| 55 | +### Step 1. Initialize with API Key |
| 56 | +
|
| 57 | +Insert your Claude API Key in the main window, and press Initialize. |
11 | 58 |
|
12 | 59 |  |
13 | 60 |  |
14 | 61 |
|
15 | | -# Step 2. Write your prompt and press Submit. |
| 62 | +### Step 2. Submit Your Prompt |
16 | 63 |
|
17 | | - |
| 64 | +Write your prompt in the input box and press Submit. |
18 | 65 |
|
| 66 | + |
19 | 67 |
|
20 | | -# Current Status |
| 68 | +## Current Status |
21 | 69 |
|
22 | 70 | - Errors in correctly locating the cursor. This may be due to image downscaling (due to token length limit) |
23 | 71 | - Errors in identifying whether the goal has been achieved. |
24 | 72 | - Currently taking two screenshots at the beginning of the task. |
25 | 73 | - Need calibration of the awaiting time for the actions to complete. |
26 | 74 |
|
27 | | -# Known Errors |
| 75 | +## Known Errors |
| 76 | +
|
28 | 77 | ``` |
29 | 78 | Error: Client initialization failed: Failed to validate API key: 'Beta' object has no attribute 'messages' |
30 | 79 | ``` |
31 | | --> pip install --upgrade anthropic |
| 80 | +Solution: Update the anthropic library by running: |
| 81 | +``` |
| 82 | +pip install --upgrade anthropic |
| 83 | +``` |
0 commit comments