deadshot2003 commited on
Commit
811a1e6
·
verified ·
1 Parent(s): e627654

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -44,9 +44,9 @@ async def read_main():
44
  return {"message": "Append /gradio to the url to see gradio the interface"
45
  ,"message2": "Append /hello/{any_name} to get a greeting"}
46
 
47
- @app.get("/hello/{name}")
48
  async def read_name(name: Union[str, None] = None):
49
- return { "Hey!": name}
50
 
51
 
52
  # Mount the Gradio app onto the FastAPI app
 
44
  return {"message": "Append /gradio to the url to see gradio the interface"
45
  ,"message2": "Append /hello/{any_name} to get a greeting"}
46
 
47
+ '''@app.get("/hello/{name}")
48
  async def read_name(name: Union[str, None] = None):
49
+ return { "Hey!": name}'''
50
 
51
 
52
  # Mount the Gradio app onto the FastAPI app