yasserrmd commited on
Commit
017ccfb
·
verified ·
1 Parent(s): 0253ddb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -44,8 +44,7 @@ async def extract_code_blocks(markdown_text):
44
  # Route to serve the HTML template
45
  @app.get("/", response_class=HTMLResponse)
46
  async def serve_frontend():
47
- with open("infographic_gen.html", "r") as file:
48
- return HTMLResponse(content=file.read())
49
 
50
  # Route to handle infographic generation
51
  @app.post("/generate")
 
44
  # Route to serve the HTML template
45
  @app.get("/", response_class=HTMLResponse)
46
  async def serve_frontend():
47
+ return HTMLResponse(open("static/infographic_gen.html").read())
 
48
 
49
  # Route to handle infographic generation
50
  @app.post("/generate")