Spaces:
Sleeping
Sleeping
Commit ·
19baa66
1
Parent(s): 20b7509
Upload folder using huggingface_hub (#21)
Browse files- Upload folder using huggingface_hub (6a8cc1a5c6799db6fb209273418def1de664343a)
Co-authored-by: nicanor zousko <zousko-stark@users.noreply.huggingface.co>
main.py
CHANGED
|
@@ -1543,6 +1543,8 @@ async def analyze_image(
|
|
| 1543 |
|
| 1544 |
# Enqueue Worker (Pass ID, not bytes)
|
| 1545 |
background_tasks.add_task(process_analysis_job, task_id, request.image_id, current_user.username)
|
|
|
|
|
|
|
| 1546 |
"task_id": task_id,
|
| 1547 |
"status": "queued",
|
| 1548 |
"image_id": request.image_id
|
|
|
|
| 1543 |
|
| 1544 |
# Enqueue Worker (Pass ID, not bytes)
|
| 1545 |
background_tasks.add_task(process_analysis_job, task_id, request.image_id, current_user.username)
|
| 1546 |
+
|
| 1547 |
+
return {
|
| 1548 |
"task_id": task_id,
|
| 1549 |
"status": "queued",
|
| 1550 |
"image_id": request.image_id
|