Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -12,6 +12,13 @@ from src.models import models
|
|
12 |
import subprocess
|
13 |
|
14 |
# 명령어 실행
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
15 |
command = "apt-get install sox libsox-dev"
|
16 |
process = subprocess.Popen(command, shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
|
17 |
|
|
|
12 |
import subprocess
|
13 |
|
14 |
# 명령어 실행
|
15 |
+
command = "apt-get update"
|
16 |
+
process = subprocess.Popen(command, shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
|
17 |
+
|
18 |
+
# 명령어 실행 결과 출력
|
19 |
+
stdout, stderr = process.communicate()
|
20 |
+
print(stdout, stderr)
|
21 |
+
|
22 |
command = "apt-get install sox libsox-dev"
|
23 |
process = subprocess.Popen(command, shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
|
24 |
|