Spaces:
Sleeping
Sleeping
from gradio_client import Client, file | |
import requests | |
import os | |
HF_TOKEN = os.getenv('HF_TOKEN') | |
client = Client("dskill/sd-audio", hf_token=HF_TOKEN, download_files=True) | |
result = client.predict( | |
prompt="a fart", | |
seconds_total=5, | |
steps=100, | |
cfg_scale=7, | |
api_name="/generate_audio" | |
) | |
#this is on your local machine wtf wild | |
print("result: " + result) |