File size: 273 Bytes
624e848
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
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()