Hugging Face
Models
Datasets
Spaces
Buckets
new
Docs
Enterprise
Pricing
Website
Tasks
HuggingChat
Collections
Languages
Organizations
Community
Blog
Posts
Daily Papers
Learn
Discord
Forum
GitHub
Solutions
Team & Enterprise
Hugging Face PRO
Enterprise Support
Inference Providers
Inference Endpoints
Storage Buckets
Log In
Sign Up
Spaces:
erjonb
/
secom
like
0
Build error
App
Files
Files
Community
Fetching metadata from the HF Docker repository...
erjonb
commited on
May 18, 2023
Commit
9ae2f2d
·
1 Parent(s):
43127af
Create app.py
Browse files
Files changed (1)
hide
show
app.py
+8
-0
app.py
ADDED
Viewed
@@ -0,0 +1,8 @@
1
+
import os
2
+
from dotenv import load_dotenv
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()