Skip to content

Commit c8e922f

Browse files
committed
handle lowercase to uppercase
1 parent da38f91 commit c8e922f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

nexa/gguf/nexa_inference_vlm_omni.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,9 @@ def run(self):
149149

150150
def inference(self, prompt: str, image_path: str):
151151
with suppress_stdout_stderr():
152+
if prompt and prompt[0].islower():
153+
prompt = prompt[0].upper() + prompt[1:]
154+
152155
prompt = ctypes.c_char_p(prompt.encode("utf-8"))
153156
image_path = ctypes.c_char_p(image_path.encode("utf-8"))
154157
response = omni_vlm_cpp.omnivlm_inference(prompt, image_path)

0 commit comments

Comments
 (0)