File size: 1,081 Bytes
71680ec
 
 
 
802f7a2
71680ec
 
 
 
 
 
 
802f7a2
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
---
title: Gpt Claude Dialogue
emoji: 📚
colorFrom: purple
colorTo: blue
sdk: gradio
sdk_version: 3.28.2
app_file: app.py
pinned: false
license: mit
---

# GPT-3.5 Turbo and Claude-v1.3 Dialogue

This app uses the OpenAI API and the Anthropic API to generate responses between the two AI models. The user can type in a context and see GPT-3.5 Turbo and Claude-v1.3 have a generated conversation with each other.

Enjoy the chaos! Let me know if you have any issues running the app.

To run this app locally:

1. Clone this repository

2. Install the requirements:

```bash
pip install gradio python-dotenv openai anthropic
```

3. Obtain API keys for:
   - OpenAI's API
   - Anthropic's API

4. Add the API keys to a file called `.env` with the variables:

```
OPENAI_API_KEY="YOUR_OPENAI_API_KEY"
CLAUDE_API_KEY="YOUR_CLAUDE_API_KEY" 
``` 

5. Run the gradio app:

```bash
gradio run app.py
```

6. The gradio app will launch in your browser. Type a context to start a conversation between GPT-3.5 Turbo and Claude-v1.3!

7. To close the app, stop the process in your terminal.