Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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
|