tregu0458 commited on
Commit
813b96d
1 Parent(s): 370b629

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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(input_prompt: str):
11
- return {'message': f"hello {input_prompt}!"}
 
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}!"}