You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 5, 2024. It is now read-only.
when running (base) Bobbys-iMac:~ ROMs$ python summarize.py paper.pdf
python: can't open file '/Users/bobby/summarize.py': [Errno 2] No such file or directory
then I tried to copy and paste code from summary.py into a file and added an actual PdF document to that folder and got
(base) Bobbys-iMac:gpt-summarizer ROMs$ python summarize.py ABB525.pdf
File "/Users/bobby/Documents/gpt-summarizer/summarize.py", line 1
{\rtf1\ansi\ansicpg1252\cocoartf1561\cocoasubrtf610
^
SyntaxError: unexpected character after line continuation character
Then I tried copying the same code using Jupiter notebook and then downloading that file and running with that code:
(base) Bobbys-iMac:gpt-summarizer ROMs$ python summarize.py AB525.pdf
Traceback (most recent call last):
File "/Users/bobby/Documents/gpt-summarizer/summarize.py", line 28, in <module>
"execution_count": null,
NameError: name 'null' is not defined
python summarize.py paper.pdf will only work if the summarize.py is in your the directory you're currently in. If it's in some other directory, you need to provide the path to that location. One trick to doing that on a Mac is to drag and drop the file into Terminal. You can type python , then drag and drop the summarize.py file from Finder, and it will populate the full path to the file. Then you can hit space and do the same thing with your PDF.
If you want to be able to do ./summarize.py instead of python summarize.py, you'll need to make summarize.py executable first. The way to do that is chmod +x ./summarize.py.
Another trick if you get stuck is to open up ChatGPT, explain what you're trying to do, and copy and paste the full command and the error you get. It'll explain in detail (without assuming too much prior knowledge) what appears to be happening, and suggest some other things to try. You can also ask it follow-up questions in real time, or give it the output of the next thing you try if that also has an error.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Hi
As someone who is new to this, how do I run your code?
Can I get a step-by-step?
I ran what you wrote in the read me in terminal on a mac
but it's not working.
then I tried to copy and paste code from summary.py into a file and added an actual PdF document to that folder and got
Then I tried copying the same code using Jupiter notebook and then downloading that file and running with that code:
Then I tried:
Then tried:
how do I run your code?!
HELP!!
Thank you
The text was updated successfully, but these errors were encountered: