aiwaves-cn / RecurrentGPT

Official Code for Paper: RecurrentGPT: Interactive Generation of (Arbitrarily) Long Text
GNU General Public License v3.0
975 stars 156 forks source link

Replace full-width closing parenthesis with half-width in utils.py #22

Closed CyberSyntax closed 2 weeks ago

CyberSyntax commented 1 year ago

This commit addresses an issue caused by using full-width closing parentheses in the utils.py file. These characters, represented as ')', can lead to code errors because most programming languages, including Python, don't interpret them the same as regular, half-width characters.

To avoid any possible issues related to character encoding or syntax errors arising from the use of full-width characters, we've replaced all instances of the full-width closing parenthesis ')' with the standard half-width closing parenthesis ')'. This change should help ensure that the code in utils.py runs smoothly and as expected.