Spaces:
Sleeping
Sleeping
Sumit Kumar
commited on
Commit
·
1175fd3
1
Parent(s):
c9ed72b
Implement greeting endpoints and remove outdated requirements file
Browse files- app.py +5 -0
- requirements.tst +0 -2
app.py
CHANGED
@@ -5,3 +5,8 @@ app = FastAPI()
|
|
5 |
@app.get("/")
|
6 |
def greet_json():
|
7 |
return {"Hello": "World!"}
|
|
|
|
|
|
|
|
|
|
|
|
5 |
@app.get("/")
|
6 |
def greet_json():
|
7 |
return {"Hello": "World!"}
|
8 |
+
|
9 |
+
|
10 |
+
@app.get("/greet/{name}")
|
11 |
+
def greet_name(name: str):
|
12 |
+
return {"Hello": name}
|
requirements.tst
DELETED
@@ -1,2 +0,0 @@
|
|
1 |
-
fastapi
|
2 |
-
uvicorn[standard]
|
|
|
|
|
|