Spaces:
No application file
No application file
Update app.py
Browse files
app.py
CHANGED
|
@@ -547,7 +547,7 @@ async def analyze_file(
|
|
| 547 |
try:
|
| 548 |
os.unlink(temp_file_path)
|
| 549 |
except Exception as cleanup_error: # FIXED: Use different variable name
|
| 550 |
-
logger.warning(f"Failed to clean up {temp_file_path}: cleanup_error}")
|
| 551 |
|
| 552 |
@app.get("/download/{file_type}/{query_id}")
|
| 553 |
async def download_file(file_type: str, query_id: str):
|
|
|
|
| 547 |
try:
|
| 548 |
os.unlink(temp_file_path)
|
| 549 |
except Exception as cleanup_error: # FIXED: Use different variable name
|
| 550 |
+
logger.warning(f"Failed to clean up {temp_file_path}: {cleanup_error}")
|
| 551 |
|
| 552 |
@app.get("/download/{file_type}/{query_id}")
|
| 553 |
async def download_file(file_type: str, query_id: str):
|