Spaces:
Sleeping
Sleeping
File size: 2,131 Bytes
3ec7fea 2e84c90 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 |
---
title: Rag PdfQA Chatbot
emoji: π
colorFrom: purple
colorTo: gray
sdk: streamlit
sdk_version: 1.38.0
app_file: app.py
pinned: false
---
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
# PDF Query Chatbot

## Overview
The **PDF Query Chatbot** is a Streamlit-based application hosted on Hugging Face Spaces. It allows users to upload a PDF document and ask questions about its content. The chatbot utilizes a transformer model to generate responses based on the text extracted from the PDF.
## Live Demo
You can try the PDF Query Chatbot live here: [PDF Query Chatbot on Hugging Face Spaces](https://huggingface.co/spaces/datascientist22/rag-pdfQA-chatbot)
## Features
- **Upload PDF Files**: Upload PDF files directly from your local machine.
- **Query Input**: Enter questions related to the uploaded PDF content.
- **Text Extraction**: Extracts text from the PDF for querying.
- **Response Generation**: Uses a transformer model to generate answers based on your query and the PDF content.
## How to Use
1. **Upload PDF File**: Use the sidebar to upload a PDF file.
2. **Enter Query**: Type your question related to the PDF content in the query input field.
3. **Submit**: Click the "Submit" button to process the file and get a response.
4. **View Response**: The generated response will be displayed below the input fields.
## Requirements
To run this app locally, ensure you have the following Python packages installed:
- `transformers`: For using pre-trained transformer models.
- `PyPDF2`: For extracting text from PDF files.
- `torch`: PyTorch library for running the model.
- `streamlit`: For the web app interface.
## Installation
1. Clone the repository:
```bash
git clone https://github.com/mldatascientist23/Generative_AI_Projects.git
cd your-repository
```
2. Install the required packages:
```bash
pip install transformers PyPDF2 torch streamlit
```
3. Run the Streamlit app:
```bash
streamlit run app.py
`` |