Skip to content

Check provisions and review contracts. Chat with assistant to review PO and agreements.

License

Notifications You must be signed in to change notification settings

krishnaji/gemini-based-contract-analyst

Repository files navigation

Contract Analyst

Contract Review

Chat Assistant

Configuration

 pip install -r frontend/requirements.txt
 pip install -r backend/requirements.txt
 export BUCKET_NAME=<yourbucketname>
 export PROJECT_ID=<yourprojectname>

The app can be configured to send all provisions and questions to once or one at a time.

# set up to send all provisions and questions to model at once
export BULK_ANSWER="Y"
# set up to send one provisions and questions to model at a time
export BULK_ANSWER="N"

You can also update .env file and run load_env-variables.py to load all environment varaibles.

Run Frontend Gradio Application

cd frontent
gradio app.py

Run Backend Application

Change model name of your choice in backend/gemini.py

MODEL_ID = "gemini-1.5-pro" 

Run the backend application

cd backend
python app.py

About

Check provisions and review contracts. Chat with assistant to review PO and agreements.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published