moeid526 commited on
Commit
d8a7fcd
·
verified ·
1 Parent(s): 3cf7cde

Update launch.py

Browse files
Files changed (1) hide show
  1. launch.py +3 -7
launch.py CHANGED
@@ -1,8 +1,4 @@
1
- import subprocess
2
 
3
- # Run Flask inside Hugging Face Spaces
4
- subprocess.Popen(["python", "app.py"])
5
-
6
- # Keep the process running
7
- while True:
8
- pass
 
1
+ import os
2
 
3
+ # Run Flask directly
4
+ os.system("python app.py")