pratham0011 commited on
Commit
81265a7
·
verified ·
1 Parent(s): 40af68a

Update run_app.py

Browse files
Files changed (1) hide show
  1. 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", "--reload"])
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()