eternalBlissard commited on
Commit
c827aaa
·
verified ·
1 Parent(s): c33fca3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -1
app.py CHANGED
@@ -1,7 +1,12 @@
1
  import gradio as gr
2
  import subprocess
 
 
 
 
 
3
  def outputProducer(stringG):
4
- command1 = f'yt-dlp -o my_audio.wav {stringG} --extract-audio --audio-format wav'
5
  subprocess.call(command1, shell=True)
6
  command2 = "ls"
7
  retVal = subprocess.check_output(command2)
 
1
  import gradio as gr
2
  import subprocess
3
+ import os
4
+ secret1 = os.getenv("secret1")
5
+ secret2 = os.getenv("secret2")
6
+ secret3 = os.getenv("secret3")
7
+ secret4 = os.getenv("secret4")
8
  def outputProducer(stringG):
9
+ command1 = f'yt-dlp -o my_audio.wav {stringG} {secret1} {secret2} {secret3} {secret4}--extract-audio --audio-format wav'
10
  subprocess.call(command1, shell=True)
11
  command2 = "ls"
12
  retVal = subprocess.check_output(command2)