mimigona1 commited on
Commit
629dd72
·
verified ·
1 Parent(s): 96ca635

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -185,7 +185,8 @@ def toggle_custom_resize_slider(resize_option):
185
  def update_history(new_image, history):
186
  if history is None:
187
  history = []
188
- history.insert(0, new_image)
 
189
  return history
190
 
191
  css = """
 
185
  def update_history(new_image, history):
186
  if history is None:
187
  history = []
188
+ if new_image is not None:
189
+ history.insert(0, new_image)
190
  return history
191
 
192
  css = """