Skip to content

Commit

Permalink
Add metric to replicate
Browse files Browse the repository at this point in the history
Closes Add metric toggle to replicate replay clipper #43
  • Loading branch information
nelsonjchen committed Sep 26, 2023
1 parent 2449e4c commit 0dc0b1d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions predict.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,9 @@ def predict(
fileSize: int = Input(
description="Rough size of clip in MB.", ge=25, le=50, default=50
),
metric: bool = Input(
description="Render in metric units (km/h)", default=True
),
notes: str = Input(
description="Notes Text field. Doesn't affect output. For your own reference.", default="",
),
Expand Down Expand Up @@ -88,6 +91,8 @@ def predict(
f"--data-dir={data_dir}",
f"--output=cog-clip.mp4",
]
if metric:
command.append("--metric")
# if debugCommand != "":
# # Run bash with the command
# command = ["bash", "-c", debugCommand]
Expand Down

0 comments on commit 0dc0b1d

Please sign in to comment.