Follow these steps to set up and deploy JVCGPT Model on Beam
git clone https://huggingface.co/spaces/Error410/beam-app
Sign up at Beam.
Create and activate a Python virtual environment:
python3 -m venv .venv && source .venv/bin/activate
Install the dependencies listed in the requirements.txt
file:
pip install -r requirements.txt
Retrieve your API token from the API Keys page on the Beam dashboard. Then, configure Beam with your token:
beam configure default --token [TOKEN]
Deploy your application using the following command:
beam deploy app.py:server
Make a POST request to your deployed stream endpoint:
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}'
Enjoy 15 hours of free trial usage on Beam!