RageshAntony commited on
Commit
a6fe1b1
·
verified ·
1 Parent(s): 2654a43
Files changed (1) hide show
  1. app.py +10 -3
app.py CHANGED
@@ -243,7 +243,7 @@ def process_video_frames(
243
  )
244
  print_image_info(result_image)
245
  save_generated_image(result_image,index)
246
- yield result_image
247
  processed_frames.append(result_image)
248
 
249
  yield processed_frames
@@ -540,7 +540,14 @@ def app_gradio():
540
  # Photo Examples
541
  root_path = "resource/demo/example"
542
  with gr.Column():
543
- gal_output = gr.Gallery(label="Processed Frames")
 
 
 
 
 
 
 
544
  refresh_button = gr.Button("Refresh Gallery")
545
 
546
 
@@ -551,7 +558,7 @@ def app_gradio():
551
  refresh_button.click(
552
  fn=update_gallery,
553
  inputs=[],
554
- outputs=[file_gallery],
555
  )
556
 
557
  submit_flux.click(
 
243
  )
244
  print_image_info(result_image)
245
  save_generated_image(result_image,index)
246
+ yield result_image,result_image
247
  processed_frames.append(result_image)
248
 
249
  yield processed_frames
 
540
  # Photo Examples
541
  root_path = "resource/demo/example"
542
  with gr.Column():
543
+ gal_output = gr.Gallery(
544
+ label="Generated Images",
545
+ show_label=True,
546
+ elem_id="gal_output",
547
+ columns=3,
548
+ height=800,
549
+ visible=True
550
+ )
551
  refresh_button = gr.Button("Refresh Gallery")
552
 
553
 
 
558
  refresh_button.click(
559
  fn=update_gallery,
560
  inputs=[],
561
+ outputs=[gal_output],
562
  )
563
 
564
  submit_flux.click(