self-operating-computer icon indicating copy to clipboard operation
self-operating-computer copied to clipboard

[BUG] operate -m llava return error local variable 'content' referenced before assignment

Open chungy123 opened this issue 11 months ago • 3 comments

I am using linux with ollama. After ollama pull llava and ollama serve, operate -m llava return error local variable 'content' referenced before assignment

Steps to Reproduce

  1. Alternatively installation with .sh
  2. ollama pull llava
  3. ollama pull llava
  4. operate -m llava
  5. Input prompt

Expected Behavior

Perform the action of the prompt

Actual Behavior:

return [llava] That did not work. Trying again X get_image failed: error 8 (73, 0, 680) [Self-Operating Computer][Error] -> local variable 'content' referenced before assignment

Environment

  • OS: Linux ubuntu 22.04.3
  • Model Used (e.g., GPT-4v, Gemini Pro Vision): llava
  • Framework Version (optional):

Screenshots

image

chungy123 avatar Mar 03 '24 01:03 chungy123

Is this problem solved?

mahmudremal avatar Aug 01 '24 19:08 mahmudremal

i have the same problem

glgslsj avatar Aug 29 '24 08:08 glgslsj

image I get the same error on Windows 11 adding the verbose flag seems that it fails generating the action like seen in the image and there's never a request sent to Ollama.

Tried a python script to test the connection to Ollama and it's fine.

--EDIT--

Turned out to be an environment variable, make sure your OLLAMA_HOST is set correctly.

cybersholt avatar Sep 14 '24 17:09 cybersholt