Ken Sang Tang commited on
Commit
6dab65e
·
verified ·
1 Parent(s): da92af9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -153,8 +153,8 @@ async def task_events(task_id: str):
153
  )
154
 
155
  @app.get("/", response_class=HTMLResponse)
156
- async def root():
157
- return "<h2>FastAPI is running on Hugging Face Spaces</h2>"
158
 
159
 
160
 
 
153
  )
154
 
155
  @app.get("/", response_class=HTMLResponse)
156
+ async def homepage(request: Request):
157
+ return templates.TemplateResponse("index.html", {"request": request})
158
 
159
 
160