The code is written in Python and uses the Streamlit library to create an interactive web application. The application allows users to ask questions about the content of a PDF file using natural language and receive instant answers powered by an AI question-answering system.
Link CLICK HERE
-
Enter your OpenAI API key in the "Step 1: Enter your OpenAI API key" section. If you don't have an API key, you can get one from the OpenAI platform.
-
Click the "Submit" button to set the OpenAI API key.
-
In the "Step 2: Upload your PDF" section, click the "Browse Files" button and select a PDF file to upload.
-
Once the PDF is uploaded, you can enter a question in the "Ask a question" input box.
-
Click the "Ask" button to submit your question.
-
The application will use the uploaded PDF and the question to generate a response using the AI question-answering system.
-
The response will be displayed on the screen. Feel free to reach out to the author for any questions or feedback. Enjoy interacting with your PDFs using natural language! 🚀📄