Hugging Face
Models
Datasets
Spaces
Posts
Docs
Solutions
Pricing
Log In
Sign Up
Spaces:
dotku
/
fastapi-demo
like
1
Sleeping
App
Files
Files
Community
2
dotku
commited on
Aug 27, 2023
Commit
feca41c
•
1 Parent(s):
202276a
Create main.py
Browse files
Files changed (1)
hide
show
main.py
+7
-0
main.py
ADDED
Viewed
@@ -0,0 +1,7 @@
1
+
from fastapi import FastAPI
2
+
3
+
app = FastAPI()
4
+
5
+
@app.get("/api/python")
6
+
def hello_world():
7
+
return {"message": "Hello World"}