Spaces:
Sleeping
Sleeping
Update main.py
Browse files
main.py
CHANGED
|
@@ -22,7 +22,7 @@ client = Client(api_key=os.getenv('OPENAI_API_KEY'),organization=os.getenv('ORG_
|
|
| 22 |
async def batch_processing_result(request: Request, background_tasks: BackgroundTasks):
|
| 23 |
body = await request.json()
|
| 24 |
batch_id = body.get('batch_job_id')
|
| 25 |
-
|
| 26 |
# Add the processing task to background tasks
|
| 27 |
# if batch_job.status == 'completed':
|
| 28 |
# background_tasks.add_task(process_batch_data, batch_id)
|
|
|
|
| 22 |
async def batch_processing_result(request: Request, background_tasks: BackgroundTasks):
|
| 23 |
body = await request.json()
|
| 24 |
batch_id = body.get('batch_job_id')
|
| 25 |
+
print(batch_id)
|
| 26 |
# Add the processing task to background tasks
|
| 27 |
# if batch_job.status == 'completed':
|
| 28 |
# background_tasks.add_task(process_batch_data, batch_id)
|