chengzeyi commited on
Commit
7e225f7
·
1 Parent(s): 42e2f1a

fix recent_gallery

Browse files
Files changed (1) hide show
  1. app.py +4 -0
app.py CHANGED
@@ -408,6 +408,10 @@ with gr.Blocks(theme=gr.themes.Soft()) as demo:
408
  label="Prompt and Output",
409
  columns=3)
410
 
 
 
 
 
411
  def update_recent_gallery(prompt, results):
412
  recent_generations.append({
413
  "prompt": prompt,
 
408
  label="Prompt and Output",
409
  columns=3)
410
 
411
+ recent_gallery.change(lambda ex: ex,
412
+ inputs=[recent_gallery],
413
+ outputs=[])
414
+
415
  def update_recent_gallery(prompt, results):
416
  recent_generations.append({
417
  "prompt": prompt,