Hugging Face
Models
Datasets
Spaces
Buckets
new
Docs
Enterprise
Pricing
Website
Tasks
HuggingChat
Collections
Languages
Organizations
Community
Blog
Posts
Daily Papers
Hardware
Learn
Discord
Forum
GitHub
Solutions
Team & Enterprise
Hugging Face PRO
Enterprise Support
Inference Providers
Inference Endpoints
Storage Buckets
Log In
Sign Up
Spaces:
guohanghui
/
PyPSA
like
0
Sleeping
App
Files
Files
Community
Fetching metadata from the HF Docker repository...
0449e7b
PyPSA
/
app.py
guohanghui
Create app.py
b2f8bab
verified
9 months ago
Raw
Download with hf CLI
Copy download link
History
Blame
Safe
222 Bytes
from
fastapi
import
FastAPI
import
os
app = FastAPI()
@app.get(
"/"
)
async
def
root
():
return
{
"status"
:
"ok"
,
"service"
:
"PyPSA"
,
"transport"
: os.environ.get(
"MCP_TRANSPORT"
,
"stdio"
),
}