mitulagr2 commited on
Commit
792a93d
1 Parent(s): 651359d
Files changed (1) hide show
  1. app/main.py +1 -1
app/main.py CHANGED
@@ -61,7 +61,7 @@ async def parse_body(request: Request):
61
  def upload(data: bytes = Depends(parse_body)):
62
  if data:
63
  try:
64
- path = f"{files_dir}/file"
65
  with open(path, "wb") as f:
66
  f.write(data)
67
  session_assistant.ingest(files_dir)
 
61
  def upload(data: bytes = Depends(parse_body)):
62
  if data:
63
  try:
64
+ path = f"{files_dir}/file.pdf"
65
  with open(path, "wb") as f:
66
  f.write(data)
67
  session_assistant.ingest(files_dir)