Spaces:
Paused
Paused
File size: 545 Bytes
d814291 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | from __future__ import annotations
try:
from openenv.env import Env
except ImportError:
class Env:
"""Minimal fallback used when openenv is not installed locally."""
def __init__(
self,
name: str,
state_space: str,
action_space: list[str],
episode_max_length: int,
) -> None:
self.name = name
self.state_space = state_space
self.action_space = action_space
self.episode_max_length = episode_max_length
|