lterriel commited on
Commit
42a7955
·
1 Parent(s): 4dad254

Update launch.py

Browse files
Files changed (1) hide show
  1. launch.py +6 -2
launch.py CHANGED
@@ -1,2 +1,6 @@
1
- import subprocess
2
- subprocess.run(["streamlit", "run", "app.py"])
 
 
 
 
 
1
+ import sys
2
+ from streamlit.web import cli as stcli
3
+
4
+ if __name__ == '__main__':
5
+ sys.argv = ["streamlit", "run", "app.py"]
6
+ sys.exit(stcli.main())