Spaces:
Sleeping

thabsheeeeeer commited on
Commit
be62824
·
verified ·
1 Parent(s): ce28eb7

Update app/services/indexing_service.py

Browse files
Files changed (1) hide show
  1. app/services/indexing_service.py +1 -1
app/services/indexing_service.py CHANGED
@@ -29,7 +29,7 @@ async def index_document(document_id: int, file_path: str, filename: str, user_i
29
  with tempfile.NamedTemporaryFile(delete=False, suffix=".pdf") as tmp:
30
  content = storage_service.download_file(file_path)
31
  if not content:
32
- raise Exception("Failed to download file from Google Cloud Storage")
33
  tmp.write(content)
34
  temp_local_path = tmp.name
35
  processing_path = temp_local_path
 
29
  with tempfile.NamedTemporaryFile(delete=False, suffix=".pdf") as tmp:
30
  content = storage_service.download_file(file_path)
31
  if not content:
32
+ raise Exception("Failed to download file from Supabase Storage")
33
  tmp.write(content)
34
  temp_local_path = tmp.name
35
  processing_path = temp_local_path