Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -95,6 +95,9 @@ def get_images(ws, workflow, token):
|
|
| 95 |
data = message['data']
|
| 96 |
if data['node'] is None and data['prompt_id'] == prompt_id:
|
| 97 |
break # Execution is done
|
|
|
|
|
|
|
|
|
|
| 98 |
|
| 99 |
history = get_history(prompt_id, token)[prompt_id]
|
| 100 |
for node_id in history['outputs']:
|
|
|
|
| 95 |
data = message['data']
|
| 96 |
if data['node'] is None and data['prompt_id'] == prompt_id:
|
| 97 |
break # Execution is done
|
| 98 |
+
|
| 99 |
+
# Sleep for 3 seconds before the next iteration
|
| 100 |
+
time.sleep(3)
|
| 101 |
|
| 102 |
history = get_history(prompt_id, token)[prompt_id]
|
| 103 |
for node_id in history['outputs']:
|