mirror of
https://github.com/wassname/Clover-Edition.git
synced 2026-09-11 11:51:53 +08:00
fixed mental issue?
This commit is contained in:
@@ -190,13 +190,7 @@ class CTRLGenerator():
|
||||
if "used_verbs" not in options:
|
||||
options["used_verbs"] = set()
|
||||
|
||||
if prompt[-1] != " ":
|
||||
prompt = prompt + " "
|
||||
first_token = True
|
||||
|
||||
prompt = second_to_first_person(prompt)
|
||||
|
||||
prompt = self.control_code + prompt
|
||||
prompt_length = len(prompt)
|
||||
|
||||
# tokenize provided prompt
|
||||
@@ -326,6 +320,6 @@ class CTRLGenerator():
|
||||
result = tokens_generated_so_far[prompt_length:]
|
||||
first_token = False
|
||||
|
||||
print("tokens generated so far is ")
|
||||
print(tokens_generated_so_far)
|
||||
print("tokens generated so far is \n\n")
|
||||
print(repr(tokens_generated_so_far))
|
||||
return self.result_replace(result)
|
||||
|
||||
@@ -71,6 +71,7 @@ def replace_outside_quotes(text, current_word, repl_word):
|
||||
|
||||
first_to_second_mappings = [
|
||||
("I'm ", "you're "),
|
||||
(" I'm ", " you're "),
|
||||
("I am ", "you are "),
|
||||
("I ", "you "),
|
||||
("I've ", "You've "),
|
||||
|
||||
Reference in New Issue
Block a user