Welcome to Clause-Crafters! This application processes documents and provides answers to your queries by extracting relevant information from the given PDFs. Follow the instructions below to set up and run the app.
- Python 3.12 installed on your system
- Virtual environment setup
-
Create a virtual environment:
python -m venv .venv
-
Activate the virtual environment:
- On Windows:
.venv\Scripts\activate
- On macOS/Linux:
source .venv/bin/activate
- On Windows:
-
Install the required packages:
pip install -r requirements.txt and pip install -r requirements_Frontend.txt #or simply run one command-->pip install -r requirements1.txt
- Create and activate the virtual environment:
python -m venv fastapi_env
- On Windows:
```bash
fastapi_env\Scripts\activate
```
- On macOS/Linux:
```bash
source fastapi_env/bin/activate
```
- Install the required packages:
pip install -r requirements_Backend.txt #or simply run one command-->pip install -r requirements1.txt
In Terminal 2, navigate to the backend directory (if applicable) and start the FastAPI backend:
uvicorn backend:app --reload
In Terminal 1, run the Streamlit app:
streamlit run finalapp.py
Once the app is running, open the provided URL (usually http://localhost:8501
) in your web browser. You can start asking questions and view the answers extracted from the provided PDFs.
If you encounter any issues, ensure that all dependencies are installed correctly and the virtual environments are activated. Check for any error messages in the terminal and resolve any missing dependencies or configuration issues.