Spaces:
Runtime error
Runtime error
Download app.py from michaelschell/speech-to-text: direct link, hf CLI and curl.
- Browser
- Download file 273 Bytes
-
https://huggingface.co/spaces/michaelschell/speech-to-text/resolve/main/app.py
- Command line
-
hf download hf://spaces/michaelschell/speech-to-text/app.py
-
curl -L -o app.py https://huggingface.co/spaces/michaelschell/speech-to-text/resolve/main/app.py
273 Bytes
| import gradio as gr | |
| from speech_to_text import transcribe | |
| block = gr.Blocks() | |
| def run(): | |
| with block: | |
| gr.Interface(fn=transcribe, inputs="microphone", outputs="text") | |
| block.launch(server_name='0.0.0.0', server_port=7860) | |
| if __name__ == '__main__': | |
| run() |