add pause button

This commit is contained in:
Vladimir Mandic
2023-05-31 11:47:22 -04:00
parent d9f72b066f
commit fcb9bde068
9 changed files with 91 additions and 214 deletions
+1
View File
@@ -76,6 +76,7 @@ def wrap_gradio_call(func, extra_outputs=None, add_stats=False):
res = extra_outputs_array + [f"<div class='error'>{html.escape(type(e).__name__+': '+str(e))}</div>"]
shared.state.skipped = False
shared.state.interrupted = False
shared.state.paused = False
shared.state.job_count = 0
if not add_stats:
return tuple(res)