Commit e2d476ab by nzy

Fix RobotB outputs

parent 79533a8c
from anpl.synthesizer import raw_query, msg from anpl.synthesizer import raw_query, msg
from utils import sys_str, system_info, multiline_input, select_task, set_openai_key, rich_dumps from utils import sys_str, system_info, multiline_input, select_task, set_openai_key, rich_dumps
from rich.prompt import IntPrompt, Confirm, Prompt from rich.prompt import IntPrompt, Confirm, Prompt
import rich
from anpl.sandbox import import_module_from_string from anpl.sandbox import import_module_from_string
import numpy as np import numpy as np
import time import time
...@@ -85,7 +86,7 @@ while not is_correct: ...@@ -85,7 +86,7 @@ while not is_correct:
logger.log("system", "check", f"wrong") logger.log("system", "check", f"wrong")
system_info("[red] Code WRONG [/red]") system_info("[red] Code WRONG [/red]")
print("The output is") print("The output is")
print(rich_dumps(out)) rich.print(rich_dumps(out))
else: else:
quit_time = time.time() quit_time = time.time()
if quit_time - logger.start_time < 30 * 60: if quit_time - logger.start_time < 30 * 60:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment