graykode / gpt-2-Pytorch

Simple Text-Generator with OpenAI gpt-2 Pytorch Implementation
MIT License
963 stars 225 forks source link

Invalid Syntax #22

Open fubak opened 3 years ago

fubak commented 3 years ago

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."

dnns92 commented 3 years ago

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