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()