moeid526 commited on
Commit
6461072
·
verified ·
1 Parent(s): f4622bd

Create launch.py

Browse files
Files changed (1) hide show
  1. launch.py +8 -0
launch.py ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
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