Spaces:
Runtime error
Runtime error
Download app.py from MaxGab/Text-to-Audio: direct link, hf CLI and curl.
- Browser
- Download file 660 Bytes
-
https://huggingface.co/spaces/MaxGab/Text-to-Audio/resolve/refs%2Fpr%2F1/app.py
- Command line
-
hf download hf://spaces/MaxGab/Text-to-Audio@refs/pr/1/app.py
-
curl -L -o app.py https://huggingface.co/spaces/MaxGab/Text-to-Audio/resolve/refs%2Fpr%2F1/app.py
660 Bytes
| from diffusers import AudioLDM2Pipeline | |
| import torch | |
| model = "cvssp/audioldm2" | |
| pipe = AudioLDM2Pipeline.from_pretrained(model, torch_dtype = torch.float16,).to("cuda") | |
| #https://www.google.com/search?sca_esv=cd968c0da757ee90&q=how+to+integrate+facebook+small+music+gen+ai+model+in+hugging+face&udm=7&fbs=ABzOT_CWdhQLP1FcmU5B0fn3xuWp6IcynRBrzjy_vjxR0KoDMp_4ut2Z3jppK72fzdIpWsBpYmR8fwcVczrRGmP-Hf4k8E3HhH0FkewPslVYtPbS7rGVU8bggt4DoRlXFprvjJNrWGq5bwD453K6Qh-s0BRNe1W_hAxmbVQyPGbJvui05wbS7HVKzL9e-c2LYt6maQuIGup0S0PHSh7uopV_cX6MhI6o3A&sa=X&ved=2ahUKEwiV07K16ZiMAxXbSzABHVsFKcwQtKgLegQIExAB&biw=1512&bih=787&dpr=2#fpstate=ive&vld=cid:21b04632,vid:_5F-toek0G8,st:0 |