File size: 1,476 Bytes
3a196db
 
f48cd65
3a196db
 
 
06126dc
3a196db
 
 
5d5c0aa
 
00952dd
5d5c0aa
 
 
803a719
 
 
 
 
 
 
 
5d5c0aa
 
 
 
803a719
5d5c0aa
cc53151
 
 
5d5c0aa
 
 
803a719
5d5c0aa
cc53151
 
 
5d5c0aa
 
 
803a719
5d5c0aa
cc53151
 
 
5d5c0aa
 
 
803a719
5d5c0aa
cc53151
 
 
5d5c0aa
 
 
803a719
5d5c0aa
cc53151
 
 
 
 
 
5d5c0aa
 
 
 
803a719
5d5c0aa
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
---
title: Beam App
emoji: 🤖
colorFrom: indigo
colorTo: pink
sdk: static
app_file: README.md
pinned: false
---

# How to Use

Follow these steps to set up and deploy JVCGPT Model on [Beam](https://beam.cloud/)

---

## 1. Clone the repository
```shell
git clone https://huggingface.co/spaces/Error410/beam-app
```

---

## 2. Create an Account on Beam
Sign up at [Beam](https://platform.beam.cloud/).

---

## 3. Set Up a Python Virtual Environment
Create and activate a Python virtual environment:
```shell
python3 -m venv .venv && source .venv/bin/activate
```

---

## 4. Install Required Packages
Install the dependencies listed in the `requirements.txt` file:
```shell
pip install -r requirements.txt
```

---

## 5. Register Your Beam API Token
Retrieve your API token from the [API Keys](https://platform.beam.cloud/settings/api-keys) page on the Beam dashboard. Then, configure Beam with your token:
```shell
beam configure default --token [TOKEN]
```

---

## 6. Deploy Your Application on Beam
Deploy your application using the following command:
```shell
beam deploy app.py:server
```

---

## 7. Call the Stream Endpoint
Make a POST request to your deployed stream endpoint:
```shell
curl -X POST 'https://[ID].app.beam.cloud/stream' \
-H 'Connection: keep-alive' \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer [TOKEN]' \
-d '{"prompt": "", "posts_count": 5}'
```

---

## 8. Enjoy Your Free Trial
Enjoy 15 hours of free trial usage on Beam!