import gradio as gr import subprocess def outputProducer(stringG): command1 = f'yt-dlp -o my_audio.wav {stringG} --extract-audio --audio-format wav' subprocess.call(command1, shell=True) command2 = "whisper my_audio.wav" retVal = subprocess.check_output(command2) return retVal demo = gr.Interface(fn=outputProducer, inputs = [gr.Textbox()], outputs= [gr.Textbox()], title = 'Simplify') demo.launch()