You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am passing a javascript function to _js which returns an audio URL. This is expected to update the audio which is the case. But this audio component, when used as input in the button click event, it throws an error.
Traceback (most recent call last):
File "/usr/local/lib/python3.10/dist-packages/gradio/routes.py", line 439, in run_predict
output = await app.get_blocks().process_api(
File "/usr/local/lib/python3.10/dist-packages/gradio/blocks.py", line 1387, in process_api
inputs = self.preprocess_data(fn_index, inputs, state)
File "/usr/local/lib/python3.10/dist-packages/gradio/blocks.py", line 1230, in preprocess_data
processed_input.append(block.preprocess(inputs[i]))
File "/usr/local/lib/python3.10/dist-packages/gradio/components/audio.py", line 191, in preprocess
x["name"],
TypeError: string indices must be integers
Describe the bug
I am passing a javascript function to _js which returns an audio URL. This is expected to update the audio which is the case. But this audio component, when used as input in the button click event, it throws an error.
Have you searched existing issues? 🔎
Reproduction
Screenshot
No response
Logs
System Info
Severity
Blocking usage of gradio
The text was updated successfully, but these errors were encountered: