clr commited on
Commit
38aa581
·
1 Parent(s): 3e9b351

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -1,5 +1,5 @@
1
  import gradio as gr
2
- import subprocess
3
 
4
 
5
 
@@ -21,15 +21,15 @@ def setup():
21
  subprocess.run(["unzip", "./master.zip"])
22
  subprocess.run(["mv", "REAPER-master", "REAPER"])
23
  subprocess.run(["rm", "./master.zip"])
24
- subprocess.run(["cd", "REAPER"])
25
  subprocess.run(["mkdir", "build"])
26
- subprocess.run(["cd", "build"])
27
  r2 = subprocess.run(["cmake", ".."], capture_output=True, text=True)
28
  print(r2.stdout)
29
  r3 = subprocess.run(["make"], capture_output=True, text=True)
30
  print(r3.stdout)
31
 
32
- subprocess.run(["cd", "../.."])
33
  r9 = subprocess.run(["ls", "-la"], capture_output=True, text=True)
34
  print('LS::', r9.stdout)
35
 
 
1
  import gradio as gr
2
+ import subprocess,os
3
 
4
 
5
 
 
21
  subprocess.run(["unzip", "./master.zip"])
22
  subprocess.run(["mv", "REAPER-master", "REAPER"])
23
  subprocess.run(["rm", "./master.zip"])
24
+ os.chdir('./REAPER')
25
  subprocess.run(["mkdir", "build"])
26
+ os.chdir('./build')
27
  r2 = subprocess.run(["cmake", ".."], capture_output=True, text=True)
28
  print(r2.stdout)
29
  r3 = subprocess.run(["make"], capture_output=True, text=True)
30
  print(r3.stdout)
31
 
32
+ os.chdir('../..')
33
  r9 = subprocess.run(["ls", "-la"], capture_output=True, text=True)
34
  print('LS::', r9.stdout)
35