# Get the PDF path from the command-line arguments pdf_path = sys.argv[1] # Extract abstract from the PDF abstract = extract_abstract(pdf_path) # if abstract exists on first page, print summary. if abstract: # Summarize and generate keywords summary = summarize_and_generate_keywords(abstract) print(summary) else: print("Abstract not found on the first page.")