Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -30,8 +30,10 @@ def outputProducer(inputVideo):
|
|
30 |
retVal = subprocess.check_output("ls")
|
31 |
subprocess.run(['rm', 'audio'+name_random+'.mp3'], check=True)
|
32 |
return retVal
|
|
|
33 |
demo = gr.Interface(fn=outputProducer,
|
34 |
inputs = [gr.Video()],
|
35 |
outputs= [gr.Textbox()],
|
|
|
36 |
title = 'Simplify')
|
37 |
demo.launch()
|
|
|
30 |
retVal = subprocess.check_output("ls")
|
31 |
subprocess.run(['rm', 'audio'+name_random+'.mp3'], check=True)
|
32 |
return retVal
|
33 |
+
exampleList = [["examples/" + example] for example in os.listdir("examples")]
|
34 |
demo = gr.Interface(fn=outputProducer,
|
35 |
inputs = [gr.Video()],
|
36 |
outputs= [gr.Textbox()],
|
37 |
+
examples=exampleList,
|
38 |
title = 'Simplify')
|
39 |
demo.launch()
|