- gemi cli can read a text file and answer questions based on the prompt
- It can read an image and answer questions based on the prompt
- It can read small pdfs (4-8 pages) and answer questions based on the prompt
- It can read a single page of a pdf and answer questions based on the prompt
YouTube Demo Link
usage: gemi-cli [-h] [-c] [-ri image_location] [-rf file_location] [-rpdf file_location]
[-page page_number] [-p prompt]
gemi-cli - A CLI application to access gemini from your command line. :)
options:
-h, --help show this help message and exit
-c, --chat Start a conversation with gemini
-ri image_location, --read-image image_location
Show image at specified location.
-rf file_location, --read-file file_location
Read contents of the specified file or small pdfs.
-rpdf file_location, --read-pdf-file file_location
Read contents of a specified page from a pdf file.
-page page_number Specify page number for PDF file.
-p prompt, --prompt prompt
Add a prompt
- Clone the repo and
cd
into it - Run
pip install -r requirements.txt
- Execute
chmod +x gemi-cli
- Execute
pwd
which should give you your current location - If you are using
zsh
then add this lineexport PATH=$PATH:"the path got from pwd"
to your.zshrc
file. If you are usingbash
add theexport
line to your.bashrc
file - Execute
source ~/.zshrc
orsource ~/.bashrc
- Now you can use the
gemi-cli
command from anywhere in your machine - At first you'll be asked to get the API_KEY. After getting the API_KEY rename the
.env_example
file to.env
and paste the Key there
- Remove the
export
line from.zshrc
or.bashrc
- Run
pip uninstall -y -r requirements.txt
- Now you have removed
gemi-cli
from your machine