Spaces:
Build error
Build error
Create app.py
Browse files
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()
|