pratham0011 commited on
Commit
9099711
·
verified ·
1 Parent(s): f0a48af

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +0 -19
main.py CHANGED
@@ -9,22 +9,3 @@ app.mount("/img", StaticFiles(directory="img"), name="img")
9
  @app.get("/")
10
  def index() -> FileResponse:
11
  return FileResponse(path="/app/static/index.html", media_type="text/html")
12
-
13
-
14
- # from fastapi import FastAPI, Request
15
- # from fastapi.staticfiles import StaticFiles
16
- # from fastapi.templating import Jinja2Templates
17
-
18
- # app = FastAPI()
19
-
20
- # # Mount the static directory for serving static files
21
- # app.mount("/static", StaticFiles(directory="static"), name="static")
22
- # app.mount("/img", StaticFiles(directory="img"), name="img")
23
-
24
- # # Setup templates directory
25
- # templates = Jinja2Templates(directory="static")
26
-
27
- # @app.get("/")
28
- # def read_index(request: Request):
29
- # # Serve index.html from the static directory
30
- # return templates.TemplateResponse("index.html", {"request": request})
 
9
  @app.get("/")
10
  def index() -> FileResponse:
11
  return FileResponse(path="/app/static/index.html", media_type="text/html")