Spaces:
Sleeping
Sleeping
Fix: state() called as function in endpoint
Browse files
main.py
CHANGED
|
@@ -127,7 +127,7 @@ async def step(action: ActionRequest):
|
|
| 127 |
|
| 128 |
@app.get("/state")
|
| 129 |
async def state():
|
| 130 |
-
return env.state
|
| 131 |
|
| 132 |
if __name__ == "__main__":
|
| 133 |
uvicorn.run(app, host="0.0.0.0", port=7860)
|
|
|
|
| 127 |
|
| 128 |
@app.get("/state")
|
| 129 |
async def state():
|
| 130 |
+
return env.state()
|
| 131 |
|
| 132 |
if __name__ == "__main__":
|
| 133 |
uvicorn.run(app, host="0.0.0.0", port=7860)
|