Muhammad Taqi Raza commited on
Commit
560f256
·
1 Parent(s): 5ff6a5d

final commmit

Browse files
Files changed (1) hide show
  1. gradio_app.py +4 -0
gradio_app.py CHANGED
@@ -298,6 +298,10 @@ def inference(video_path, num_frames, fps, target_pose, mode):
298
  result = subprocess.run(command, capture_output=True, text=True)
299
  logs += "\n" + result.stdout
300
  result_dir = print_output_directory(out_dir)
 
 
 
 
301
 
302
  return logs + result_dir + "Hello! it is successful", str(f"{out_dir}/00000_43_out.mp4")
303
 
 
298
  result = subprocess.run(command, capture_output=True, text=True)
299
  logs += "\n" + result.stdout
300
  result_dir = print_output_directory(out_dir)
301
+ if result.returncode == 0:
302
+ logs += "Inference completed successfully."
303
+ else:
304
+ logs += f"Error occurred during inference: {result.stderr}"
305
 
306
  return logs + result_dir + "Hello! it is successful", str(f"{out_dir}/00000_43_out.mp4")
307