Samfy001 commited on
Commit
a95165f
·
verified ·
1 Parent(s): 9d0fdaa

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +1 -2
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