mirror of https://github.com/THUDM/ChatGLM-6B
Fix turn_idx
parent
5b0332e59e
commit
f06df225dd
|
@ -200,8 +200,8 @@ def main():
|
|||
else:
|
||||
prompt = ""
|
||||
history = examples[history_column][i]
|
||||
for i, (old_query, response) in enumerate(history):
|
||||
prompt += "[Round {}]\n问:{}\n答:{}\n".format(i, old_query, response)
|
||||
for turn_idx, (old_query, response) in enumerate(history):
|
||||
prompt += "[Round {}]\n问:{}\n答:{}\n".format(turn_idx, old_query, response)
|
||||
prompt += "[Round {}]\n问:{}\n答:".format(len(history), query)
|
||||
|
||||
prompt = prefix + prompt
|
||||
|
|
Loading…
Reference in New Issue