scottleibrand / gpt-summarizer

Extract text from PDF, summarize each section w/ GPT, and provide a summarized outline of the paper
MIT License
188 stars 27 forks source link

difficulty running this #10

Closed Dprofeta86 closed 1 year ago

Dprofeta86 commented 1 year ago

Thank you for sharing this - I am new with python and I am having difficulties running this as I receive an error saying:

File "/Users/__/Desktop/summarize.py", line 151 headers = [f"{section_header.split('.')[0]}. Section intro"] ^ SyntaxError: invalid syntax Any chance you would be able to help me figure this one out?

Just out of curiosity, is this compiled using python3? Thank you.

scottleibrand commented 1 year ago

I believe that f”” syntax is python3, yes. What version are you using? You might want to ask ChatGPT how to set up a Python virtual environment on Windows so you can load all the right versions of things for each project.

Dprofeta86 commented 1 year ago

amazing - it worked!! Thank you!