Hugging Face
Models
Datasets
Spaces
Posts
Docs
Enterprise
Pricing
Log In
Sign Up
Spaces:
samge
/
openai-api-calcul
like
0
Sleeping
App
Files
Files
Community
Fetching metadata from the HF Docker repository...
e69847e
openai-api-calcul
/
app.py
samge
Add application file
e69847e
7 months ago
raw
Copy download link
history
blame
Safe
219 Bytes
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
# author:samge
# date:2024-09-06 09:58
# describe:
from
fastapi
import
FastAPI
app = FastAPI()
@app.get(
"/"
)
def
greet_json
():
return
{
"Hello"
:
"Huggingface!"
}