gosign commited on
Commit
640b59e
·
verified ·
1 Parent(s): 7192cc2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -0
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']: