Add MP4 upload support
This commit is contained in:
@@ -39,6 +39,20 @@ def test_build_pipeline_command_accepts_optional_settings():
|
||||
assert "--gpu" in command
|
||||
|
||||
|
||||
def test_build_pipeline_command_accepts_uploaded_mp4():
|
||||
command = build_pipeline_command(
|
||||
{
|
||||
"input_file": "C:\\videos\\demo.mp4",
|
||||
"lang": "de",
|
||||
}
|
||||
)
|
||||
|
||||
assert "https://youtube.com/watch?v=demo" not in command
|
||||
assert "--input-file" in command
|
||||
assert command[command.index("--input-file") + 1] == "C:\\videos\\demo.mp4"
|
||||
assert command[command.index("--lang") + 1] == "de"
|
||||
|
||||
|
||||
def test_create_app_builds_gradio_blocks():
|
||||
app = create_app()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user