Spaces:
Runtime error
Runtime error
Download test.py from TeamTonic/MultiMed: direct link, hf CLI and curl.
- Browser
- Download file 417 Bytes
-
https://huggingface.co/spaces/TeamTonic/MultiMed/resolve/bff0d2c7377dbe8968ddf732d94de7d15ba4fd7e/test.py
- Command line
-
hf download hf://spaces/TeamTonic/MultiMed@bff0d2c7377dbe8968ddf732d94de7d15ba4fd7e/test.py
-
curl -L -o test.py https://huggingface.co/spaces/TeamTonic/MultiMed/resolve/bff0d2c7377dbe8968ddf732d94de7d15ba4fd7e/test.py
417 Bytes
| import gradio as gr | |
| def process_speech(audio): | |
| return f"""audio {audio} | |
| type {type(audio)}""" | |
| with gr.Blocks(theme='ParityError/Anime') as iface : | |
| audio_input = gr.Audio(label="talk in french") | |
| audio_output = gr.Markdown(label="output text") | |
| audio_button = gr.Button("process audio") | |
| audio_button.click(process_speech, inputs=audio_input, outputs=audio_output) | |
| iface.launch(show_error=True) |