刘虹雨 commited on
Commit
0f2ea6a
·
1 Parent(s): 51afc14

update code

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -630,7 +630,7 @@ def avatar_generation(items, save_path_base, video_path_input, source_type, is_s
630
  images_to_video(save_frames_path_depth, os.path.join(save_path_base, image_name + video_name+ '_depth.mp4'))
631
 
632
  logging.info(f"✅ Video generation completed successfully!")
633
- return os.path.join(save_path_base, image_name + video_name+ '_out.mp4'), os.path.join(save_path_base, image_name + video_name+'_depth.mp4')
634
  except Exception as e:
635
  return None, None, f"❌ error:{str(e)}"
636
 
@@ -982,7 +982,6 @@ def launch_gradio_app():
982
  def process_image_and_enable_style(input_image, source_type, is_styled, wd):
983
  try:
984
  processed_result, updated_source_type, image_name_true = process_image(input_image, source_type, is_styled, wd)
985
-
986
  return processed_result, updated_source_type, gr.update(interactive=True), gr.update(interactive=True), image_name_true, ""
987
  except Exception as e:
988
  return None, updated_source_type, gr.update(interactive=False), gr.update(interactive=False), image_name_true, f"❌ error:{str(e)}"
 
630
  images_to_video(save_frames_path_depth, os.path.join(save_path_base, image_name + video_name+ '_depth.mp4'))
631
 
632
  logging.info(f"✅ Video generation completed successfully!")
633
+ return os.path.join(save_path_base, image_name + video_name+ '_out.mp4'), os.path.join(save_path_base, image_name + video_name+'_depth.mp4'), ""
634
  except Exception as e:
635
  return None, None, f"❌ error:{str(e)}"
636
 
 
982
  def process_image_and_enable_style(input_image, source_type, is_styled, wd):
983
  try:
984
  processed_result, updated_source_type, image_name_true = process_image(input_image, source_type, is_styled, wd)
 
985
  return processed_result, updated_source_type, gr.update(interactive=True), gr.update(interactive=True), image_name_true, ""
986
  except Exception as e:
987
  return None, updated_source_type, gr.update(interactive=False), gr.update(interactive=False), image_name_true, f"❌ error:{str(e)}"