harshvardhan96 commited on
Commit
c5f05de
1 Parent(s): 54f107b

created app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -0
app.py ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ import os
2
+ from dotenv import load_dotenv
3
+ from subprocess import Popen
4
+ load_dotenv()
5
+
6
+ command = ["mercury", "run", f"0.0.0.0:{os.environ.get('PORT', 7860)}"]
7
+ worker = Popen(command)
8
+ worker.wait()