Hugging Face
Models
Datasets
Spaces
Posts
Docs
Enterprise
Pricing
Log In
Sign Up
Spaces:
pplonski
/
artificial-calculus-teacher
like
0
Build error
App
Files
Files
Community
2
c6c02f7
artificial-calculus-teacher
/
app.py
pplonski
Create app.py
3d79cbe
about 2 years ago
raw
Copy download link
history
blame
Safe
197 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()