Himanshu kumar Vishwakrma commited on
Commit
7fb61a6
·
1 Parent(s): ff0995c

Add README with Space configuration

Browse files
Files changed (1) hide show
  1. README.md +29 -67
README.md CHANGED
@@ -1,67 +1,29 @@
1
- # Chat with PDF
2
-
3
- This Python project that allows you to chat with a chatbot about the PDF you uploaded. and generate a PDF transcript of the conversation. The project is built using Python and Streamlit framework.
4
-
5
-
6
- This is a fork from https://github.com/sudan94/chat-pdf-hugginface. I had issues install the requirements.txt, thus I removed the '==version' in requirements.txt with
7
- ```shell
8
- sed -i 's/\=.*//g' requirements.txt
9
- ```
10
- Then, I added some modules that are needed for app.py that were not in requirements.txt.
11
-
12
- A `conda` environment is used instead of `venv` virtual environment
13
-
14
- ## Installation
15
-
16
- To run this project, please follow the steps below:
17
-
18
- 1. Clone the repository:
19
-
20
- ```shell
21
- git clone git@github.com:MattLondon101/chat-pdf-hugginface.git
22
- cd chat-pdf-hugginface
23
- ```
24
-
25
- 2. Create and activate a conda virtual environment (optional but recommended):
26
-
27
- ```shell
28
- conda create -n env1 python=3.10
29
- conda activate env1
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