Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
anpl
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Ziyuan Nan
anpl
Commits
e2d476ab
Commit
e2d476ab
authored
May 10, 2023
by
nzy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix RobotB outputs
parent
79533a8c
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletions
+2
-1
robotB.py
+2
-1
No files found.
robotB.py
View file @
e2d476ab
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
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment