Hugging Face
Models
Datasets
Spaces
Community
Docs
Enterprise
Pricing
Log In
Sign Up
Spaces:
beeguy
/
website-RAG
like
0
Sleeping
App
Files
Files
Community
Fetching metadata from the HF Docker repository...
27d375b
website-RAG
/
app.py
beeguy
gitignore and test of secrets
27d375b
8 months ago
raw
Copy download link
history
blame
Safe
179 Bytes
from
fastapi
import
FastAPI
from
os
import
getenv
app = FastAPI()
MY_KEY = getenv(
"MY_KEY"
)
@app.get(
"/"
)
def
greet_json
():
return
{
"Hello"
:
"World! My key is: "
+ MY_KEY}