File size: 1,160 Bytes
bdcb718 14f6d19 fd26aa4 14f6d19 bdcb718 fd26aa4 bdcb718 e2eab77 14f6d19 cbc4c0b 1853e11 14f6d19 e2eab77 cbc4c0b bdcb718 fd26aa4 bdcb718 11aa54f 04549f6 cbc4c0b 04549f6 8407ae2 cbc4c0b 04549f6 6f2752e cbc4c0b ecbcd62 04549f6 14f6d19 cbc4c0b 14f6d19 e2eab77 fd26aa4 14f6d19 cbc4c0b 14f6d19 cbc4c0b 14f6d19 6f2752e 14f6d19 cbc4c0b e2eab77 cbc4c0b |
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 |
---
# https://huggingface.co/docs/hub/en/spaces-config-reference
title: Playground
short_description: Explore popular generative AI endpoints
emoji: ⚡
colorFrom: blue
colorTo: pink
sdk: streamlit
sdk_version: 1.40.2
python_version: 3.11.9
suggested_hardware: cpu-basic
app_file: 0_🏠_Home.py
full_width: true
pinned: false
header: default
license: apache-2.0
---
# ⚡ Playground
[Streamlit](https://streamlit.io) app for running inference on generative AI endpoints.
## Secrets
Setting keys as environment variables persists them so you don't have to enter them on every page load.
```bash
ANTHROPIC_API_KEY=...
BFL_API_KEY=...
FAL_KEY=...
HF_TOKEN=...
OPENAI_API_KEY=...
PPLX_API_KEY=...
TOGETHER_API_KEY=...
```
## Installation
Recommend [uv](https://github.com/astral-sh/uv).
```sh
# clone
git clone https://huggingface.co/spaces/adamelliotfields/playground-template.git
cd playground
# install
uv venv
source .venv/bin/activate
uv pip install -r requirements.txt
# run
python 0_🏠_Home.py
```
## Development
```sh
git remote set-url origin https://adamelliotfields:$HF_TOKEN@huggingface.co/spaces/adamelliotfields/playground-template
```
|