Muhammad Taqi Raza
commited on
Commit
·
d3d1fbf
1
Parent(s):
c50efbd
adding the code for showing up masked videos
Browse files- .DS_Store +0 -0
- gradio_app.py +3 -2
- out/.DS_Store +0 -0
.DS_Store
ADDED
Binary file (6.15 kB). View file
|
|
gradio_app.py
CHANGED
@@ -302,7 +302,7 @@ def inference(video_path, num_frames, fps, target_pose, mode):
|
|
302 |
else:
|
303 |
logs += f"Error occurred during inference: {result.stderr}"
|
304 |
|
305 |
-
return logs + result_dir + "Hello! it is successful", str(f"{out_dir}/00000_43_out.mp4")
|
306 |
|
307 |
# -----------------------------
|
308 |
# Step 3: Create Gradio UI
|
@@ -318,7 +318,8 @@ demo = gr.Interface(
|
|
318 |
],
|
319 |
outputs=[
|
320 |
gr.Textbox(label="Inference Logs"),
|
321 |
-
gr.Video(label="Generated Video")
|
|
|
322 |
],
|
323 |
title="🎬 EPiC: Efficient Video Camera Control",
|
324 |
description="Upload a video, describe the scene, and apply cinematic camera motion using pretrained EPiC models.",
|
|
|
302 |
else:
|
303 |
logs += f"Error occurred during inference: {result.stderr}"
|
304 |
|
305 |
+
return logs + result_dir + "Hello! it is successful", str(f"{out_dir}/00000_43_out.mp4"), video_masked
|
306 |
|
307 |
# -----------------------------
|
308 |
# Step 3: Create Gradio UI
|
|
|
318 |
],
|
319 |
outputs=[
|
320 |
gr.Textbox(label="Inference Logs"),
|
321 |
+
gr.Video(label="Generated Video`"),
|
322 |
+
gr.Video(label="Masked Video")
|
323 |
],
|
324 |
title="🎬 EPiC: Efficient Video Camera Control",
|
325 |
description="Upload a video, describe the scene, and apply cinematic camera motion using pretrained EPiC models.",
|
out/.DS_Store
ADDED
Binary file (6.15 kB). View file
|
|