File size: 366 Bytes
4e35e69
929aad9
 
 
4e35e69
 
 
929aad9
4e35e69
929aad9
 
 
 
 
88554a6
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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="Ambient rainfall",
		seconds_total=5,
		steps=100,
		cfg_scale=7,
		api_name="/predict"
)
#this is on your local machine wtf wild
print("result: " + result)