Spaces:
Sleeping
Sleeping
Commit ·
c24a61e
1
Parent(s): 627f6bf
Finished
Browse files
backend/api/__pycache__/__init__.cpython-313.pyc
CHANGED
|
Binary files a/backend/api/__pycache__/__init__.cpython-313.pyc and b/backend/api/__pycache__/__init__.cpython-313.pyc differ
|
|
|
backend/api/__pycache__/routes.cpython-313.pyc
CHANGED
|
Binary files a/backend/api/__pycache__/routes.cpython-313.pyc and b/backend/api/__pycache__/routes.cpython-313.pyc differ
|
|
|
server/app.py
CHANGED
|
@@ -61,7 +61,7 @@ env = BESSEnvironment(data_path=data_path)
|
|
| 61 |
|
| 62 |
|
| 63 |
@app.post("/reset", response_model=ObservationModel)
|
| 64 |
-
def reset(config: ResetConfig):
|
| 65 |
try:
|
| 66 |
obs = env.reset(seed=config.seed, task=config.task)
|
| 67 |
return obs
|
|
|
|
| 61 |
|
| 62 |
|
| 63 |
@app.post("/reset", response_model=ObservationModel)
|
| 64 |
+
def reset(config: ResetConfig = ResetConfig()):
|
| 65 |
try:
|
| 66 |
obs = env.reset(seed=config.seed, task=config.task)
|
| 67 |
return obs
|