Spaces:
Sleeping
Sleeping
Update app/services/indexing_service.py
Browse files
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
|
| 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
|