Spaces:
Runtime error
Runtime error
Upload folder using huggingface_hub
Browse filesFiles changed (2)
- README.md-7
- server/app.py+20-1
12 unmodified lines131415161718192021161718160 unmodified lines17918018118818218312 unmodified lines - RL---
<p align="center"> <a href="https://kgdrathan-explainer-env-dashboard.hf.space/"> <strong>Open the live dashboard</strong> </a></p>
<p align="center"> <a href="https://kgdrathan-explainer-env-dashboard.hf.space/"> https://kgdrathan-explainer-env-dashboard.hf.space/160 unmodified lines## Links
- Environment Space: [kgdrathan-explainer-env](https://kgdrathan-explainer-env.hf.space)- Dashboard Space: [kgdrathan-explainer-env-dashboard](https://kgdrathan-explainer-env-dashboard.hf.space/)- SFT adapter: [kgdrathan/ministral-3-3b-4bit-marimo-manim](https://huggingface.co/kgdrathan/ministral-3-3b-4bit-marimo-manim/)- Reward details: [explainer_env/rewards/README.md](explainer_env/rewards/README.md)27 unmodified lines2829303132333435363710 unmodified lines48495048515253545556575859606162636465666768697071727374757627 unmodified lines python -m server.app"""
import osimport sysfrom contextlib import asynccontextmanagerfrom pathlib import Path
try: from openenv.core.env_server.http_server import create_app10 unmodified lines from server.explainer_env_environment import ExplainerEnvironment
# Create the app with web interface and README integrationdef _build_dashboard_tab(*_args, **_kwargs): """Return the project dashboard as an OpenEnv custom web-interface tab.""" project_root = Path(__file__).resolve().parents[2] if str(project_root) not in sys.path: sys.path.insert(0, str(project_root))
from dashboard import build_ui
return build_ui()
# Serve the dashboard from the same FastAPI service by default. OpenEnv only# attaches gradio_builder when its web interface is enabled.os.environ.setdefault("ENABLE_WEB_INTERFACE", "true")
# Create the app with web interface, README integration, and the dashboard tab.app = create_app( ExplainerEnvironment, ExplainerAction, ExplainerObservation, env_name="explainer_env", max_concurrent_envs=4, # parallel training rollouts gradio_builder=_build_dashboard_tab,)
README.md-7
server/app.py+20-1