Zeggai Abdellah commited on
Commit
b8f2d15
·
1 Parent(s): ec741a1

fix the downlad path

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -196,7 +196,7 @@ async def download_file(filename: str):
196
  """
197
  Endpoint to download generated files
198
  """
199
- file_path = f".{filename}"
200
  if os.path.exists(file_path):
201
  return FileResponse(file_path, media_type="application/json", filename=filename)
202
  raise HTTPException(status_code=404, detail="File not found")
 
196
  """
197
  Endpoint to download generated files
198
  """
199
+ file_path = f"./{filename}"
200
  if os.path.exists(file_path):
201
  return FileResponse(file_path, media_type="application/json", filename=filename)
202
  raise HTTPException(status_code=404, detail="File not found")