Spaces:
Sleeping
Sleeping
Update main.py
Browse files
main.py
CHANGED
|
@@ -49,10 +49,10 @@ async def batch_processing_result(request: Request, background_tasks: Background
|
|
| 49 |
# Add the processing task to background tasks
|
| 50 |
if batch_job.status == 'completed':
|
| 51 |
background_tasks.add_task(process_batch_data, batch_id)
|
| 52 |
-
return {"batch_job_status":'
|
| 53 |
|
| 54 |
# Immediately return success response
|
| 55 |
-
return {'batch_job_status':'
|
| 56 |
|
| 57 |
async def process_batch_data(batch_id: str):
|
| 58 |
try:
|
|
|
|
| 49 |
# Add the processing task to background tasks
|
| 50 |
if batch_job.status == 'completed':
|
| 51 |
background_tasks.add_task(process_batch_data, batch_id)
|
| 52 |
+
return {"batch_job_status":'completed'}
|
| 53 |
|
| 54 |
# Immediately return success response
|
| 55 |
+
return {'batch_job_status':'notcompleted'}
|
| 56 |
|
| 57 |
async def process_batch_data(batch_id: str):
|
| 58 |
try:
|