Upload app.py
Browse files
app.py
CHANGED
|
@@ -425,7 +425,7 @@ def change_use_gpu(value):
|
|
| 425 |
return gr.Dropdown(USE_GPU_CHOICES, value=value, label='Hardware', info=USE_GPU_INFOS[value], interactive=CUDA_AVAILABLE)
|
| 426 |
|
| 427 |
from gradio_client import Client
|
| 428 |
-
client = Client('hexgrad/kokoro-src', hf_token=os.environ
|
| 429 |
def preview(text, voice, speed, trim, use_gpu, sk):
|
| 430 |
return client.predict(text=text, voice=voice, speed=speed, trim=trim, use_gpu=use_gpu, sk=sk, api_name='/generate')[0]
|
| 431 |
|
|
|
|
| 425 |
return gr.Dropdown(USE_GPU_CHOICES, value=value, label='Hardware', info=USE_GPU_INFOS[value], interactive=CUDA_AVAILABLE)
|
| 426 |
|
| 427 |
from gradio_client import Client
|
| 428 |
+
client = Client('hexgrad/kokoro-src', hf_token=os.environ['SRC'])
|
| 429 |
def preview(text, voice, speed, trim, use_gpu, sk):
|
| 430 |
return client.predict(text=text, voice=voice, speed=speed, trim=trim, use_gpu=use_gpu, sk=sk, api_name='/generate')[0]
|
| 431 |
|