app.py Error: return_audio_ps

#16
by jaypurplegreen - opened

In a local instance trying to use the API

>>> client = Client("http://127.0.0.1:7860")
>>> aud = client.predict("Hello, squirrel.", 'af_heart', 1.0 , api_name="/predict")
...
gradio_client.exceptions.AppError: The upstream Gradio app has raised an exception: name 'return_audio_ps' is not defined

At https://huggingface.co/spaces/hexgrad/Kokoro-TTS/blob/3759d07e83c59667bbda9c62dc02550f9310dcae/app.py#L45

Maybe it belongs to a library not imported or out of date in my venv? Typo? Thanks

Ah, I renamed a function and forgot to rename it everywhere. Hopefully this fixed it? https://hf.co/spaces/hexgrad/Kokoro-TTS/commit/bfb40ed2001c920fca02643240ac516944182ad6

jaypurplegreen changed discussion status to closed

Sign up or log in to comment