chatbotAPI / ReadME.md
dhruv4023's picture
Synced repo using 'sync_with_huggingface' Github Action
f37ceb5 verified
|
raw
history blame
1.41 kB

Automated Legal Document Analysis and Question Answering System

Requirements

Python Version

  • Python 3.9.10

Huggingface API

  • Generate your API key and place it in the .env file:
    HUGGINGFACEHUB_API_TOKEN=""
    

Setup Environment

Option 1: Automated Setup (PowerShell)

  • Run CreateEnv.ps1 file in PowerShell. It will:
    • Create a virtual environment
    • Activate it
    • Create temporary folders
    • Install necessary Python modules

Option 2: Manual Setup

  • Create a virtual environment:
    python -m venv venv
    
  • Activate virtual environment:
    venv\Scripts\Activate.ps1
    
  • Install Python modules:
    python -m pip install -r "requirements.txt"
    
  • Create folders:
    1. Outputs
    2. Models (if you want to download manually) (Not necessary)

References

Models

PDF Documents

HuggingFaceHub Repository link: