File size: 1,066 Bytes
fd6d970
 
 
 
 
 
 
 
 
 
 
1e4764f
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
e98904e
 
 
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
50
51
---
title: Gradio Canvas πŸ€—
emoji: 🎨
colorFrom: red
colorTo: yellow
sdk: gradio
sdk_version: 5.1.0
app_file: app.py
pinned: false
---

# Gradio Canvas πŸ€—

Gradio Canvas is a web application inspired by ChatGPT's Canvas. This project combines the capabilities of Fireworks AI and Instructor to create a seamless code generation experience.

Built with:
- Llama 3.1 405B via [Fireworks AI](https://fireworks.ai)
- [Instructor](https://github.com/instructor-ai/instructor) for structured output parsing
- [Gradio](https://github.com/gradio-app/gradio) for the web interface

## Getting Started

### Prerequisites

- Fireworks AI API key

### Installation

1. Clone the repository:
   ```bash
   git clone https://github.com/yourusername/gradio-canvas.git
   cd gradio-canvas
   ```

2. Install the required dependencies:
   ```bash
   pip install -r requirements.txt
   ```

3. Set up your Fireworks AI API key as an environment variable:
   ```bash
   export FIREWORKS_API_KEY=your_api_key_here
   ```

### Usage

Run the application:

```bash
gradio app.py
```