Changesets · Branches · Tags · Compare
| Changeset | 45dff3e2bb65d2c727ce10914563da85c0f3b0204fc8ea49f51a19322c62e0ff |
|---|---|
| Author | Prince Canuma <prince.gdt@gmail.com> · 2024-04-16 18:17 +02:00 |
| Committer | Prince Canuma <prince.gdt@gmail.com> · 2024-04-16 18:17 +02:00 |
| Parents | 49df8b568aec |
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 | |
| 2 | 2 | from .version import __version__ |
| No newline at the end of the file |
modified mlx_vlm/generate.py +2 −2
| @@ -143,11 +143,11 @@ | ||
| 143 | 143 | |
| 144 | 144 | print("Image Path:\n") |
| 145 | 145 | print(args.image) |
| 146 | - print("="*20) | |
| 146 | + print("="*20+"\n") | |
| 147 | 147 | |
| 148 | 148 | print("Prompt:\n") |
| 149 | 149 | print(prompt) |
| 150 | - print("="*20) | |
| 150 | + print("="*20+"\n") | |
| 151 | 151 | input_ids, pixel_values = prepare_inputs(image_processor, processor, args.image, prompt) |
| 152 | 152 | |
| 153 | 153 | generated_text = generate_text( |