Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -7,5 +7,5 @@ def api_home():
|
|
7 |
return {'detail': 'Welcome to FastAPI TextGen Tutorial!'}
|
8 |
|
9 |
@app.post("/",tags=["hello"])
|
10 |
-
def hello(
|
11 |
-
return {'message': f"hello {
|
|
|
7 |
return {'detail': 'Welcome to FastAPI TextGen Tutorial!'}
|
8 |
|
9 |
@app.post("/",tags=["hello"])
|
10 |
+
def hello(name: str):
|
11 |
+
return {'message': f"hello {name}!"}
|