gpt-2-Pytorch icon indicating copy to clipboard operation
gpt-2-Pytorch copied to clipboard

Invalid Syntax

Open fubak opened this issue 3 years ago • 1 comments

I installed Python 2 and followed the instructions in the readme, but I'm getting an 'Invalid Syntax' error on the end quote on the following command. I have retyped the command just in case of a copy/paste artifact and I get the same error.

main.py --text "It was a bright cold day in April, and the clocks were striking thirteen. Winston Smith, his chin nuzzled into his breast in an effort to escape the vile wind, slipped quickly through the glass doors of Victory Mansions, though not quickly enough to prevent a swirl of gritty dust from entering along with him."

fubak avatar Nov 12 '20 20:11 fubak

You said you installed python2? This repo is based on python3. Maybe your syntax error is related to some string function that changed from py2 to py3. Dont bother with python 2 anymore, use python3

dnns92 avatar Jan 16 '21 21:01 dnns92