File size: 474 Bytes
62b92da
 
c827aaa
62b92da
8f0b496
7aec26d
c33fca3
7aec26d
 
62b92da
 
b7f1e44
62b92da
ba8a16b
1
2
3
4
5
6
7
8
9
10
11
12
13
14
import gradio as gr
import subprocess
import os
def outputProducer(stringG):
    command1 = f'yt-dlp {stringG} --netrc imp.netrc --extract-audio --audio-format wav'
    subprocess.call(command1, shell=True)
    command2 = "ls"
    retVal = subprocess.check_output(command2)
    return retVal
demo = gr.Interface(fn=outputProducer,
                    inputs = [gr.Textbox()],
                    outputs= [gr.Textbox()],
                    title = 'Simplify')
demo.launch()