This repository contains the source code for the Chat PDF project.
The Chat PDF project is a tool that allows users to convert chat conversations into PDF documents. It provides a simple and convenient way to save and share chat logs in a portable format.
- Convert chat conversations into PDF documents
- Customize the appearance and formatting of the PDF output
- Support for various chat platforms and formats
- Easy-to-use command-line interface
To use this repository on your local machine, follow these steps:
-
Clone the repository:
git clone https://github.com/your-username/chat-pdf.git
-
Install the required dependencies:
pip install -r requirements.txt
-
Add .env file with the following content:
the example of .env file is provided in the .env.example file
here is the example of .env file:
HUGGINGFACEHUB_API_TOKEN=hf_xxxxx
here is tutorial on how to get API key and secret: link
-
Run the application:
streamlit run streamlit_app.py
- Open the application in your browser
- Upload the pdf file
- wait until chat box appear
- fill the chat box with your question
- click process button