Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -9,7 +9,7 @@ my_env = os.environ.copy()
|
|
9 |
#
|
10 |
my_env["HF_SPACE"] = "embed/NSC9/Artificial_Calculus_Teacher"
|
11 |
|
12 |
-
command = ["mercury", "run"]
|
13 |
print(command)
|
14 |
worker = Popen(command, env=my_env)
|
15 |
worker.wait()
|
|
|
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 |
print(command)
|
14 |
worker = Popen(command, env=my_env)
|
15 |
worker.wait()
|