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

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, "data": data})
35
 
36
  import json
37
  import logging
@@ -231,7 +231,7 @@ async def main(
231
 
232
 
233
  # Save the audio as a temporary WAV file
234
- return templates.TemplateResponse("interface.html", {"request": request, "file_url": file_url})
235
 
236
  # Serve the audio file with the correct media type
237
  # return FileResponse(renamed_audio_file)
 
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
 
231
 
232
 
233
  # Save the audio as a temporary WAV file
234
+ return templates.TemplateResponse("interface.html", {"request": request, "file_url": file_url, "data": data})
235
 
236
  # Serve the audio file with the correct media type
237
  # return FileResponse(renamed_audio_file)