yiyixin commited on
Commit
25a1940
1 Parent(s): 12065da
Files changed (1) hide show
  1. app.py +10 -0
app.py ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ from fastapi import FastAPI
2
+
3
+ app = FastAPI()
4
+
5
+ @app.get("/")
6
+ def read_root():
7
+ return {"Hello": "World"}
8
+
9
+ @app.get("/items/{item_id}")
10
+ def read_item(item