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