Spaces:
Paused
Paused
File size: 480 Bytes
62b92da 7aec26d 62b92da b7f1e44 62b92da ba8a16b |
1 2 3 4 5 6 7 8 9 10 11 12 13 |
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() |