fix: keep task 2 sample resolution scoped

parent b178f70b
......@@ -180,7 +180,7 @@ def build_request_spec(config: dict) -> dict:
}
if mode == "video-doubt":
video_path = ensure_sample_file(config.get("video_file"), "--video-file")
video_path = _require_file(config.get("video_file"), "--video-file")
content = (
f"Video file: {video_path}\n"
f"Question: {config['prompt']}\n"
......@@ -198,7 +198,7 @@ def build_request_spec(config: dict) -> dict:
}
if mode == "music-audio-doubt":
audio_path = ensure_sample_file(config.get("audio_file"), "--audio-file")
audio_path = _require_file(config.get("audio_file"), "--audio-file")
content = (
f"Audio file: {audio_path}\n"
f"Question: {config['prompt']}\n"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment