Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
@@ -156,7 +156,7 @@ def get_matte(video_in, subject_to_remove):
|
|
156 |
print("Trying to call video matting")
|
157 |
result = matte_client.predict(
|
158 |
f"{video_in}", # str (filepath on your computer (or URL) of file) in 'parameter_4' Video component
|
159 |
-
|
160 |
f"{subject_to_remove}", # str in 'Text prompt' Textbox component
|
161 |
"", # str in 'Background prompt' Textbox component
|
162 |
api_name="/go_matte"
|
@@ -274,7 +274,7 @@ def infer_auto(project_name, video_in, subject_to_remove):
|
|
274 |
f"--mask={masks_folder}",
|
275 |
f"--output={output_folder}",
|
276 |
f"--save_fps={int(needed_fps)}",
|
277 |
-
f"--fp16"
|
278 |
]
|
279 |
|
280 |
execute_command(command_auto)
|
|
|
156 |
print("Trying to call video matting")
|
157 |
result = matte_client.predict(
|
158 |
f"{video_in}", # str (filepath on your computer (or URL) of file) in 'parameter_4' Video component
|
159 |
+
10, # int | float (numeric value between 0 and 10) in 'Cut video at (s)' Slider component
|
160 |
f"{subject_to_remove}", # str in 'Text prompt' Textbox component
|
161 |
"", # str in 'Background prompt' Textbox component
|
162 |
api_name="/go_matte"
|
|
|
274 |
f"--mask={masks_folder}",
|
275 |
f"--output={output_folder}",
|
276 |
f"--save_fps={int(needed_fps)}",
|
277 |
+
#f"--fp16"
|
278 |
]
|
279 |
|
280 |
execute_command(command_auto)
|