Spaces:
Sleeping
Sleeping
Himanshu kumar Vishwakrma commited on
Commit ·
7fb61a6
1
Parent(s): ff0995c
Add README with Space configuration
Browse files
README.md
CHANGED
|
@@ -1,67 +1,29 @@
|
|
| 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 |
-
3. Install the dependencies from the `requirements.txt` file:
|
| 33 |
-
|
| 34 |
-
```shell
|
| 35 |
-
pip install -r requirements.txt
|
| 36 |
-
```
|
| 37 |
-
|
| 38 |
-
4. You will need a HUGGINGFACEHUB_API_TOKEN for this next step. To obtain one for free, got to https://huggingface.co/ and Sign Up for a free account. Then, go to Settings > Access Tokens. Create a New token. Then, create a file in this directory, name is `.env` and enter `HUGGINGFACEHUB_API_TOKEN = "token"`, replacing `token` with your User Access Token. Save the `.env` file. The `.gitignore` file will ignore the `.env` for git operation.
|
| 39 |
-
|
| 40 |
-
## Running the Project
|
| 41 |
-
|
| 42 |
-
Once you have installed the required dependencies, you can run the project using Streamlit, which should have been installed with `requirements.txt`. Streamlit provides an easy way to create interactive web applications in Python.
|
| 43 |
-
|
| 44 |
-
To start the application, run the following command:
|
| 45 |
-
|
| 46 |
-
```shell
|
| 47 |
-
streamlit run app.py
|
| 48 |
-
```
|
| 49 |
-
|
| 50 |
-
This will start the Streamlit server and open the application in your default web browser..
|
| 51 |
-
|
| 52 |
-
### Git flow
|
| 53 |
-
`.gitit.sh` can be used for easy pushing updates to remote repo.
|
| 54 |
-
|
| 55 |
-
Activate with:
|
| 56 |
-
```shell
|
| 57 |
-
chmod +x .gitit.sh
|
| 58 |
-
```
|
| 59 |
-
Then, to add, commit, and push to remote repo:
|
| 60 |
-
```
|
| 61 |
-
./gitit.sh
|
| 62 |
-
```
|
| 63 |
-
|
| 64 |
-
## License
|
| 65 |
-
|
| 66 |
-
This project is licensed under the [MIT License](LICENSE).
|
| 67 |
-
|
|
|
|
| 1 |
+
echo '---
|
| 2 |
+
title: PDF Chatbot
|
| 3 |
+
emoji: 📄
|
| 4 |
+
colorFrom: blue
|
| 5 |
+
colorTo: purple
|
| 6 |
+
sdk: gradio
|
| 7 |
+
sdk_version: 3.50.2
|
| 8 |
+
app_file: app.py
|
| 9 |
+
pinned: false
|
| 10 |
+
---
|
| 11 |
+
|
| 12 |
+
# PDF Question Answering Chatbot
|
| 13 |
+
|
| 14 |
+
A chatbot that can answer questions about your PDF documents using AI.
|
| 15 |
+
|
| 16 |
+
## Features
|
| 17 |
+
- Upload any PDF document
|
| 18 |
+
- Ask natural language questions
|
| 19 |
+
- Get accurate answers from the document content
|
| 20 |
+
|
| 21 |
+
## How to Use
|
| 22 |
+
1. Upload a PDF file
|
| 23 |
+
2. Ask questions about its content
|
| 24 |
+
3. Get instant answers
|
| 25 |
+
|
| 26 |
+
## Technical Details
|
| 27 |
+
- Uses `deepset/roberta-base-squad2` model
|
| 28 |
+
- Built with Gradio interface
|
| 29 |
+
- Deployed on Hugging Face Spaces' > README.md
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|