from gradio_client import Client, file import json async def test(): client = Client("fishaudio/fish-speech-1") result = client.predict( text="Hello!!", enable_reference_audio=False, reference_audio=file('https://github.com/gradio-app/gradio/raw/main/test/test_files/audio_sample.wav'), reference_text="", max_new_tokens=0, chunk_length=200, top_p=0.7, repetition_penalty=1.2, temperature=0.7, batch_infer_num=1, if_load_asr_model=False, api_name="/inference_wrapper" ) return repr(json.dumps(result))