Hugging Face
Models
Datasets
Spaces
Posts
Docs
Enterprise
Pricing
Log In
Sign Up
Spaces:
NSC9
/
Artificial_Calculus_Teacher
like
8
Runtime error
App
Files
Files
Community
5
ba62add
Artificial_Calculus_Teacher
/
app.py
NSC9
Update app.py
ba62add
about 2 years ago
raw
Copy download link
history
blame
Safe
196 Bytes
import
os
from
dotenv
import
load_dotenv
from
subprocess
import
Popen
load_dotenv()
command = [
"mercury"
,
"run"
,
f"0.0.0.0:
{os.environ.get(
'PORT'
,
7860
)}
"
]
worker = Popen(command)
worker.wait()