Removed message shown on the gallery tab when empty which was still shown even when it was not empty. (#1625)

This commit is contained in:
Alejandro Gil 2022-10-29 22:41:19 -07:00 committed by GitHub
commit 599db4147c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 1 deletions

View File

@ -462,7 +462,6 @@ def load_models(use_LDSR = False, LDSR_model='model', use_GFPGAN=False, GFPGAN_m
try: try:
server_state["model"].args.use_multiprocessing_for_evaluation = False server_state["model"].args.use_multiprocessing_for_evaluation = False
except AttributeError as e: except AttributeError as e:
logger.error(e)
pass pass
if st.session_state.defaults.general.enable_attention_slicing: if st.session_state.defaults.general.enable_attention_slicing:

View File

@ -691,6 +691,7 @@ def layout():
with gallery_tab: with gallery_tab:
logger.info(seeds) logger.info(seeds)
sdGallery(output_images) sdGallery(output_images)
st.session_state["gallery"] = st.empty()
#except (StopException, KeyError): #except (StopException, KeyError):