eternalBlissard commited on
Commit
72b90bc
·
verified ·
1 Parent(s): a3f6d74

Create app.py

Browse files
Files changed (1) hide show
  1. app.py +15 -0
app.py ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import gradio as gr
2
+ import subprocess
3
+ import os
4
+ import ffmpeg
5
+ def outputProducer(inputVideo):
6
+ input_file = ffmpeg.input(inputVideo)
7
+ input_file.output('audio.wav', acodec='wav').run()
8
+ command2 = "ls"
9
+ retVal = subprocess.check_output(command2)
10
+ return retVal
11
+ demo = gr.Interface(fn=outputProducer,
12
+ inputs = [gr.Video()],
13
+ outputs= [gr.Textbox()],
14
+ title = 'Simplify')
15
+ demo.launch()