Skip to content

Commit

Permalink
Fixed minor bug (--remove-sources argument issue)
Browse files Browse the repository at this point in the history
  • Loading branch information
aledipa authored Oct 13, 2023
1 parent b1baa40 commit bc2e9ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/FreeGPT4_Server.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ async def index() -> str:

# Cleans the response from the resources links
# INFO: Unsupported escape sequence in string literal
if (args.remove_sources == "True"):
if (str(args.remove_sources) == "True"):
if re.search(r"\[\^[0-9]+\^\]\[[0-9]+\]", resp_str):
resp_str = resp_str.split("\n\n")
if len(resp_str) > 1:
Expand Down

0 comments on commit bc2e9ce

Please sign in to comment.