Update app.py
Browse files
app.py
CHANGED
@@ -1,11 +1,11 @@
|
|
1 |
import subprocess
|
2 |
|
3 |
-
|
4 |
|
5 |
-
command = ["arecord" "-l"]
|
6 |
-
print(command)
|
7 |
-
result = subprocess.run(command, stdout=subprocess.PIPE, text=True)
|
8 |
-
print("Output:\n", result.stdout)
|
9 |
#os.system("uvicorn server:app --reload")
|
10 |
|
11 |
"""
|
|
|
1 |
import subprocess
|
2 |
|
3 |
+
subprocess.run(["uvicorn", "server:app", "--host", "0.0.0.0", "--port", "7860", "--workers", "2"])
|
4 |
|
5 |
+
#command = ["arecord" "-l"]
|
6 |
+
#print(command)
|
7 |
+
#result = subprocess.run(command, stdout=subprocess.PIPE, text=True)
|
8 |
+
#print("Output:\n", result.stdout)
|
9 |
#os.system("uvicorn server:app --reload")
|
10 |
|
11 |
"""
|