Spaces:
Runtime error
Runtime error
Marc-Alexandre Côté
commited on
Commit
•
c6dda3e
1
Parent(s):
b98d1a5
Move score.
Browse files
app.py
CHANGED
@@ -96,7 +96,7 @@ def step():
|
|
96 |
|
97 |
with st.sidebar:
|
98 |
# st.warning(env.getTaskDescription())
|
99 |
-
st.success(f"Score: {infos['score']}")
|
100 |
|
101 |
valid_actions = [""] + sorted(infos["validActions"])
|
102 |
if infos['done']:
|
@@ -111,8 +111,9 @@ for act, obs in history:
|
|
111 |
if obs:
|
112 |
st.info(obs.replace('\n ', '\n- ').replace('\n\t', '\n- '))
|
113 |
|
114 |
-
act = st.selectbox('
|
115 |
|
|
|
116 |
|
117 |
if infos['tasksuccess']:
|
118 |
with st.sidebar:
|
@@ -128,6 +129,7 @@ elif infos['taskfailure']:
|
|
128 |
|
129 |
|
130 |
|
|
|
131 |
# # Auto scroll at the bottom of the page.
|
132 |
# components.html(
|
133 |
# f"""
|
|
|
96 |
|
97 |
with st.sidebar:
|
98 |
# st.warning(env.getTaskDescription())
|
99 |
+
# st.success(f"Score: {infos['score']}")
|
100 |
|
101 |
valid_actions = [""] + sorted(infos["validActions"])
|
102 |
if infos['done']:
|
|
|
111 |
if obs:
|
112 |
st.info(obs.replace('\n ', '\n- ').replace('\n\t', '\n- '))
|
113 |
|
114 |
+
act = st.selectbox('Next action:', options=valid_actions, index=0, on_change=step, key="action")
|
115 |
|
116 |
+
st.warning(f"Current score: {infos['score']} out of 1.0")
|
117 |
|
118 |
if infos['tasksuccess']:
|
119 |
with st.sidebar:
|
|
|
129 |
|
130 |
|
131 |
|
132 |
+
|
133 |
# # Auto scroll at the bottom of the page.
|
134 |
# components.html(
|
135 |
# f"""
|