Skip to content

Commit

Permalink
handle lowercase to uppercase
Browse files Browse the repository at this point in the history
  • Loading branch information
Davidqian123 committed Nov 22, 2024
1 parent da38f91 commit c8e922f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions nexa/gguf/nexa_inference_vlm_omni.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,9 @@ def run(self):

def inference(self, prompt: str, image_path: str):
with suppress_stdout_stderr():
if prompt and prompt[0].islower():
prompt = prompt[0].upper() + prompt[1:]

prompt = ctypes.c_char_p(prompt.encode("utf-8"))
image_path = ctypes.c_char_p(image_path.encode("utf-8"))
response = omni_vlm_cpp.omnivlm_inference(prompt, image_path)
Expand Down

0 comments on commit c8e922f

Please sign in to comment.