Skip to content

Instantly share code, notes, and snippets.

@fsndzomga
Created September 29, 2023 20:52
Show Gist options
  • Save fsndzomga/28fb21de4f4843ed829843f6b6dff817 to your computer and use it in GitHub Desktop.
Save fsndzomga/28fb21de4f4843ed829843f6b6dff817 to your computer and use it in GitHub Desktop.
if __name__ == "__main__":
pdf_name = input("What is the name of the PDF file you want to chat with ?")
pdf_folder = 'pdfs'
pdf_path = os.path.join(pdf_folder,pdf_name)
# responder = Backend(pdf_path)
while True:
question = input("Enter your question about the document or type quit:")
if question == 'quit':
break
# response = responder(question)
print("\n", response)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment