Marc-Alexandre Côté commited on
Commit
08a868f
1 Parent(s): c6dda3e

Cast seed to int

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -14,7 +14,7 @@ if env is None:
14
  env = TextWorldExpressEnv()
15
  st.session_state["env"] = env
16
 
17
- seed = st.session_state.get("seed")
18
  obs = st.session_state.get("obs")
19
  infos = st.session_state.get("infos")
20
  history = st.session_state.get("history")
@@ -75,7 +75,7 @@ with st.sidebar:
75
 
76
 
77
  if len(history) == 0:
78
- obs, infos = env.reset(seed, gameFold="train", gameName=game, gameParams=params)
79
  obs, reward, done, infos = env.step("look around")
80
  st.session_state["obs"] = obs
81
  st.session_state["infos"] = infos
 
14
  env = TextWorldExpressEnv()
15
  st.session_state["env"] = env
16
 
17
+ #seed = st.session_state.get("seed")
18
  obs = st.session_state.get("obs")
19
  infos = st.session_state.get("infos")
20
  history = st.session_state.get("history")
 
75
 
76
 
77
  if len(history) == 0:
78
+ obs, infos = env.reset(int(seed), gameFold="train", gameName=str(game), gameParams=params)
79
  obs, reward, done, infos = env.step("look around")
80
  st.session_state["obs"] = obs
81
  st.session_state["infos"] = infos