Keltezaa commited on
Commit
dd02b09
·
verified ·
1 Parent(s): 33f3055

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -6
app.py CHANGED
@@ -596,12 +596,12 @@ def check_custom_model(link):
596
  # Assume it's a Hugging Face model path
597
  return get_huggingface_safetensors(link)
598
 
599
- #def update_history(new_image, history):
600
- # """Updates the history gallery with the new image."""
601
- # if history is None:
602
- # history = []
603
- # history.insert(0, new_image)
604
- # return history
605
 
606
  css = '''
607
  #gen_btn{height: 100%}
 
596
  # Assume it's a Hugging Face model path
597
  return get_huggingface_safetensors(link)
598
 
599
+ def update_history(new_image, history):
600
+ """Updates the history gallery with the new image."""
601
+ if history is None:
602
+ history = []
603
+ history.insert(0, new_image)
604
+ return history
605
 
606
  css = '''
607
  #gen_btn{height: 100%}