streamlit-app-2024-06-11-16-06-53.webm
DocBot is an intelligent document processing application with a chatbot interface. It can process various types of documents, including PDFs and images, extract essential information, and enable user interaction through a chat interface.
- Document Upload: Upload PDF, PNG, JPG, or JPEG files for processing.
- Text Extraction: Extract text content from uploaded documents.
- Image Processing: Convert PDF documents to images and extract text from images.
- Chatbot Interface: Interact with the document through a chatbot interface powered by Groq.
- Natural Language Understanding: Utilizes spaCy for natural language processing.
- Dynamic Progress Bar: Visual feedback on document processing progress.
- Error Handling: Provides error messages for any processing failures.
-
Clone the repository:
git clone https://github.com/Adityak8340/docbot.git
-
Install the required Python packages:
pip install -r requirements.txt
-
Set up the environment variables:
Create a
.envfile in the root directory and add the following:GROQ_API_KEY='your_groq_api_key'
-
Run the Streamlit app:
streamlit run app.py
- Run the Streamlit app using the provided installation instructions.
- Upload your document using the file uploader.
- Wait for the document to be processed.
- Interact with the document by asking questions in the chatbot interface.
- Streamlit - For building the interactive web application.
- PyPDF2 - For PDF document processing.
- pdf2image - For converting PDFs to images.
- PyMuPDF - For PDF document rendering.
- Tesseract OCR - For extracting text from images.
- spaCy - For natural language processing.
- Groq - For AI-powered chatbot interaction.
- Pillow - For image processing.