Spaces:
Sleeping
Sleeping
import gradio as gr | |
import subprocess | |
import os | |
import ffmpeg | |
import pymedia.audio.acodec as acodec | |
import pymedia.muxer as muxer | |
def outputProducer(inputVideo): | |
print(inputVideo) | |
input_file = ffmpeg.input(inputVideo) | |
input_file.output('audio.wav', acodec='wav').run() | |
command2 = "ls" | |
retVal = subprocess.check_output(command2) | |
return retVal | |
demo = gr.Interface(fn=outputProducer, | |
inputs = [gr.Video()], | |
outputs= [gr.Textbox()], | |
title = 'Simplify') | |
demo.launch() | |