mirror of
https://github.com/NVIDIA/TensorRT-LLM.git
synced 2026-01-14 06:27:45 +08:00
fix: Set default prompts and media for multimodal quickstart example (#3792)
Signed-off-by: qixiang-99 <203170375+qixiang-99@users.noreply.github.com>
This commit is contained in:
parent
777c40e5fa
commit
3f67a4c9d8
@ -87,6 +87,11 @@ def parse_arguments():
|
||||
|
||||
def main():
|
||||
args = parse_arguments()
|
||||
# set prompts and media to example prompts and images if they are not provided
|
||||
if args.prompt is None:
|
||||
args.prompt = example_image_prompts if args.modality == "image" else example_video_prompts
|
||||
if args.media is None:
|
||||
args.media = example_images if args.modality == "image" else example_videos
|
||||
|
||||
llm, sampling_params = setup_llm(args)
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user