Spaces:
Paused
Paused
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() |