pplonski commited on
Commit
f36b963
1 Parent(s): 89cc0f8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -9
app.py CHANGED
@@ -3,14 +3,6 @@ from dotenv import load_dotenv
3
  from subprocess import Popen
4
  load_dotenv()
5
 
6
-
7
- my_env = os.environ.copy()
8
- #
9
- # Please set your username and your Space name
10
- #
11
- my_env["HF_SPACE"] = "embed/pplonski/deploy-mercury"
12
-
13
  command = ["mercury", "run", f"0.0.0.0:{os.environ.get('PORT', 7860)}"]
14
- print(command)
15
- worker = Popen(command, env=my_env)
16
  worker.wait()
 
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()