Update run_app.py
Browse files- run_app.py +10 -10
run_app.py
CHANGED
@@ -1,11 +1,11 @@
|
|
1 |
-
import subprocess
|
2 |
-
|
3 |
-
# Start Streamlit
|
4 |
-
streamlit_process = subprocess.Popen(["streamlit", "run", "streamlit_app.py"])
|
5 |
-
|
6 |
-
# Start Uvicorn
|
7 |
-
uvicorn_process = subprocess.Popen(["uvicorn", "main:app"
|
8 |
-
|
9 |
-
# Wait for the processes to finish
|
10 |
-
streamlit_process.wait()
|
11 |
uvicorn_process.wait()
|
|
|
1 |
+
import subprocess
|
2 |
+
|
3 |
+
# Start Streamlit
|
4 |
+
streamlit_process = subprocess.Popen(["streamlit", "run", "streamlit_app.py"])
|
5 |
+
|
6 |
+
# Start Uvicorn
|
7 |
+
uvicorn_process = subprocess.Popen(["uvicorn", "main:app"])
|
8 |
+
|
9 |
+
# Wait for the processes to finish
|
10 |
+
streamlit_process.wait()
|
11 |
uvicorn_process.wait()
|