-
Install the necessary packages:
pip install openai tkinter
-
Open Command Prompt and navigate to the directory containing the
llava-v1.5-7b-q4.llamafile
file. -
If you're using macOS, Linux, or BSD, you'll need to grant permission for your computer to execute this new file. (You only need to do this once.)
chmod +x llava-v1.5-7b-q4.llamafile
-
If you're on macOS, Linux, or BSD, run the llamafile. For example:
./llava-v1.5-7b-q4.llamafile
-
If you are on Windows, enter the following to run the file:
llava-v1.5-7b-q4.llamafile
-
Finally, run the chatbot script:
python chatbot.py