eternalBlissard commited on
Commit
7b8a487
·
verified ·
1 Parent(s): 2933354

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -0
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()