roll-ai commited on
Commit
53d30a2
·
verified ·
1 Parent(s): de2547c

Update gradio_app.py

Browse files
Files changed (1) hide show
  1. gradio_app.py +23 -25
gradio_app.py CHANGED
@@ -48,32 +48,30 @@ def run_epic_inference(video_path, caption, motion_type):
48
  # Save uploaded video
49
  if video_path:
50
  os.system(f"cp '{video_path}' {temp_input_path}")
51
-
52
- # Construct command to run inference
53
  command = [
54
- "python",
55
- "/app/inference/v2v_data/inference.py",
56
- "--video_path",
57
- temp_input_path,
58
- "--stride",
59
- "1",
60
- "--out_dir",
61
- output_dir,
62
- "--radius_scale",
63
- "1",
64
- "--camera",
65
- "traj",
66
- "--mask",
67
- "--target_pose",
68
- "0 30 -0.6 0 0",
69
- "--traj_txt",
70
- traj_txt,
71
- "--save_name",
72
- f"amalfi-coast_traj_{traj_name}",
73
- "--mode",
74
- "gradual",
75
- "--out_dir",
76
- output_dir,
77
  ]
78
 
79
  # Run inference command
 
48
  # Save uploaded video
49
  if video_path:
50
  os.system(f"cp '{video_path}' {temp_input_path}")
51
+
 
52
  command = [
53
+ "python",
54
+ "/app/inference/v2v_data/inference.py",
55
+ "--video_path",
56
+ temp_input_path,
57
+ "--stride",
58
+ "1",
59
+ "--out_dir",
60
+ output_dir,
61
+ "--radius_scale",
62
+ "1",
63
+ "--camera",
64
+ "traj",
65
+ "--mask",
66
+ "--target_pose", "0", "30", "-0.6", "0", "0",
67
+ "--traj_txt",
68
+ traj_txt,
69
+ "--save_name",
70
+ f"amalfi-coast_traj_{traj_name}",
71
+ "--mode",
72
+ "gradual",
73
+ "--out_dir",
74
+ output_dir,
 
75
  ]
76
 
77
  # Run inference command