100XZX001 commited on
Commit
3b32e6c
·
verified ·
1 Parent(s): 7f2021e

Update server/app.py

Browse files
Files changed (1) hide show
  1. server/app.py +1 -2
server/app.py CHANGED
@@ -86,8 +86,7 @@ def step(action: dict):
86
  @app.get("/state")
87
  def state():
88
  print("[STATE] Requested")
89
- s = env.state()
90
- return s.__dict__
91
 
92
  # ----------------------------------------------------------------------
93
  # Main entry point (for local testing)
 
86
  @app.get("/state")
87
  def state():
88
  print("[STATE] Requested")
89
+ return env._get_observation().__dict__
 
90
 
91
  # ----------------------------------------------------------------------
92
  # Main entry point (for local testing)