Hugging Face
Models
Datasets
Spaces
Posts
Docs
Enterprise
Pricing
Log In
Sign Up
Spaces:
ConquestAce
/
mathcodes
like
0
Runtime error
App
Files
Files
Community
22fbaa3
mathcodes
/
app.py
ConquestAce
Create app.py
9f8d77e
about 1 year 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()