Elffuss BraidHub

kikocis/mlx-vlm public

add utils generate and print prompt
Changeset45dff3e2bb65d2c727ce10914563da85c0f3b0204fc8ea49f51a19322c62e0ff
AuthorPrince Canuma <prince.gdt@gmail.com> · 2024-04-16 18:17 +02:00
CommitterPrince Canuma <prince.gdt@gmail.com> · 2024-04-16 18:17 +02:00
Parents49df8b568aec

Browse the files at this changeset

2 files changed

modified mlx_vlm/__init__.py +1 −1
@@ -1,2 +1,2 @@
1-from .utils import convert, load
1+from .utils import convert, generate, load
22 from .version import __version__
No newline at the end of the file
modified mlx_vlm/generate.py +2 −2
@@ -143,11 +143,11 @@
143143
144144 print("Image Path:\n")
145145 print(args.image)
146- print("="*20)
146+ print("="*20+"\n")
147147
148148 print("Prompt:\n")
149149 print(prompt)
150- print("="*20)
150+ print("="*20+"\n")
151151 input_ids, pixel_values = prepare_inputs(image_processor, processor, args.image, prompt)
152152
153153 generated_text = generate_text(