Gregniuki commited on
Commit
687d525
·
1 Parent(s): 62af528

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -31,7 +31,7 @@ data = {
31
  }
32
  @app.get("/", response_class=HTMLResponse)
33
  async def read_root(request: Request):
34
- return templates.TemplateResponse("interface.html", {"request": request, "file_url": file_url, "data": data})
35
 
36
  import json
37
  import logging
@@ -239,7 +239,7 @@ async def main(
239
 
240
  # return {"message": f"Text to synthesize: {text_input}, Speed: {speed_slider}, Play: {play}"}
241
 
242
- @app.get("/")
243
  async def download_file(fileId: str):
244
  # Retrieve the file path from the dictionary using the file ID
245
  filepath = files.get(fileId)
 
31
  }
32
  @app.get("/", response_class=HTMLResponse)
33
  async def read_root(request: Request):
34
+ return templates.TemplateResponse("interface.html", {"request": request, "data": data})
35
 
36
  import json
37
  import logging
 
239
 
240
  # return {"message": f"Text to synthesize: {text_input}, Speed: {speed_slider}, Play: {play}"}
241
 
242
+ @app.get("/download/")
243
  async def download_file(fileId: str):
244
  # Retrieve the file path from the dictionary using the file ID
245
  filepath = files.get(fileId)