jiajunlong commited on
Commit
6cd6797
1 Parent(s): ced6b81

Update generate_model.py

Browse files
Files changed (1) hide show
  1. generate_model.py +1 -3
generate_model.py CHANGED
@@ -706,11 +706,9 @@ def tinyllava_elm_generate_parser():
706
 
707
  if __name__ == '__main__':
708
  args = tinyllava_elm_generate_parser()
709
- prompt = args.prompt
710
- model = TinyLlavaForConditionalGeneration.from_pretrained(args.model)
711
 
712
  output_text, genertaion_time = generate(
713
- prompt=prompt,
714
  image=args.image,
715
  model=args.model,
716
  device=args.device,
 
706
 
707
  if __name__ == '__main__':
708
  args = tinyllava_elm_generate_parser()
 
 
709
 
710
  output_text, genertaion_time = generate(
711
+ prompt=args.prompt,
712
  image=args.image,
713
  model=args.model,
714
  device=args.device,