Update app.py
Browse files
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 |
-
|
25 |
subprocess.run(["mkdir", "build"])
|
26 |
-
|
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 |
-
|
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 |
|