Spaces:
Running
on
Zero
Running
on
Zero
File size: 452 Bytes
b45c900 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
import os
from gradio_client import Client, file
client = Client("hexgrad/Kokoro-API", hf_token=os.getenv('KOKORO'))
# endpoints = client.view_api(all_endpoints=True, print_info=False, return_format='dict')
# print(endpoints)
result = client.predict(
text='Hello there, you.',
voice='af_heart',
speed=1,
api_name='/predict'
)
print(result)
# text="Oh, hello there!!",
# voice="af",
# ps=None,
# speed=1,
# trim=3000,
# use_gpu=False, |