update running instructions (based on sesame/csm-1b@03ab46ff5cfdcc783cc76fcf9ea6fd0838503093)
Browse files
README.md
CHANGED
@@ -28,11 +28,12 @@ A hosted [HuggingFace space](https://huggingface.co/spaces/sesame/csm-1b) is als
|
|
28 |
Setup the repo
|
29 |
|
30 |
```sh
|
31 |
-
|
32 |
-
cd csm
|
33 |
-
python3.10 -m venv .venv
|
34 |
source .venv/bin/activate
|
35 |
-
pip install -r
|
|
|
|
|
|
|
36 |
```
|
37 |
|
38 |
Generate a sentence
|
@@ -42,6 +43,7 @@ from generator import load_csm_1b
|
|
42 |
import torchaudio
|
43 |
|
44 |
generator = load_csm_1b(device="cuda")
|
|
|
45 |
audio = generator.generate(
|
46 |
text="Hello from Sesame.",
|
47 |
speaker=0,
|
|
|
28 |
Setup the repo
|
29 |
|
30 |
```sh
|
31 |
+
python -m venv .venv
|
|
|
|
|
32 |
source .venv/bin/activate
|
33 |
+
curl -s -L https://raw.githubusercontent.com/SesameAILabs/csm/refs/heads/main/requirements.txt | pip install -r /dev/stdin
|
34 |
+
|
35 |
+
# You will need access to sesame/csm-1b and meta-llama/Llama-3.2-1B
|
36 |
+
huggingface-cli login
|
37 |
```
|
38 |
|
39 |
Generate a sentence
|
|
|
43 |
import torchaudio
|
44 |
|
45 |
generator = load_csm_1b(device="cuda")
|
46 |
+
|
47 |
audio = generator.generate(
|
48 |
text="Hello from Sesame.",
|
49 |
speaker=0,
|