Skip to content

Commit c8d58ac

Browse files
committed
Minor fix
1 parent fc95bf4 commit c8d58ac

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

syncode/infer.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ def __init__(
143143
def is_grammar_mode(self):
144144
return self.mode == 'grammar_mask' or self.mode == 'grammar_strict'
145145

146-
def infer(self, prompt=None, stop_words=[]):
146+
def infer(self, prompt=None, stop_words=None):
147147
output = self.user_input(prompt, stop_words=stop_words)
148148
return output
149149

@@ -193,7 +193,7 @@ def evaluate(
193193
logger.close()
194194
return output
195195

196-
def user_input(self, prompt:str, stop_words=[]):
196+
def user_input(self, prompt:str, stop_words=None):
197197
"""
198198
Run user input on the model with grammar mask
199199
"""

0 commit comments

Comments
 (0)