Issue with API call

#1
by anusfoil - opened

The following example API call returns 'Please upload and only upload one recording, either upload the audio file or record using microphone.' since it input audio file twice... But if removing one argument, or simply put empty string for another argument would result in 'Please upload an audio file.' Any idea why?

from gradio_client import Client

client = Client("https://yuangongfdu-ltu-2.hf.space/")
result = client.predict(
                "https://github.com/gradio-app/gradio/raw/main/test/test_files/audio_sample.wav",	# str (filepath or URL to file)
                                in 'Please either upload an audio file or record using the microphone.' Audio component
                "https://github.com/gradio-app/gradio/raw/main/test/test_files/audio_sample.wav",	# str (filepath or URL to file)
                                in 'audio_path_t' Audio component
                "Howdy!",	# str in 'Edit the textbox to ask your own questions!' Textbox component
                "7B (Default)",	# str in 'LLM size' Radio component
                api_name="/predict"
)
print(result)

I think it's not an API call argument problem. The demo interface as well as LTU-1 model all returns "Please upload an audio file" today (it was fine last week), maybe the model is down. Would appreciate if anyone looks into it!

@anusfoil It should come back. Please ping me if it still does not work.

Sign up or log in to comment