Merge pull request #1188 from cheald/fix-preview-error

Fix errors on early termination
This commit is contained in:
ZeroCool 2022-09-16 16:37:16 -07:00 committed by GitHub
commit 47e39df7a1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -787,6 +787,8 @@ def ModelLoader(models,load=False,unload=False,imgproc_realesrgan_model_name='Re
#
@retry(tries=5)
def generation_callback(img, i=0):
if "update_preview_frequency" not in st.session_state:
return
try:
if i == 0: