Update main.py
Browse files
main.py
CHANGED
|
@@ -160,8 +160,7 @@ async def wait_for_completion(operation_id: str, max_wait_time: int = 300) -> di
|
|
| 160 |
status_data = await check_generation_status(operation_id)
|
| 161 |
|
| 162 |
# State 2 means completed
|
| 163 |
-
if status_data.get("state
|
| 164 |
-
") == 2:
|
| 165 |
return status_data["complete"]
|
| 166 |
|
| 167 |
# Check if we've exceeded max wait time
|
|
|
|
| 160 |
status_data = await check_generation_status(operation_id)
|
| 161 |
|
| 162 |
# State 2 means completed
|
| 163 |
+
if status_data.get("state") == 2:
|
|
|
|
| 164 |
return status_data["complete"]
|
| 165 |
|
| 166 |
# Check if we've exceeded max wait time
|