Spaces:
Runtime error
Runtime error
Upload folder using huggingface_hub
Browse filesFiles changed (2)
- README.md-7
- server/app.py+20-1
12 unmodified lines131415161718192021222324160 unmodified lines18518618718818919012 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)12 unmodified lines131415161718160 unmodified lines17918018118218312 unmodified lines- RL---<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)- 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 lines2829303132333410 unmodified lines4546474849505152535455565727 unmodified linespython -m server.app"""from contextlib import asynccontextmanagertry:from openenv.core.env_server.http_server import create_app10 unmodified linesfrom server.explainer_env_environment import ExplainerEnvironment# Create the app with web interface and README integrationapp = create_app(ExplainerEnvironment,ExplainerAction,ExplainerObservation,env_name="explainer_env",max_concurrent_envs=4, # parallel training rollouts)27 unmodified lines2829303132333435363710 unmodified lines484950515253545556575859606162636465666768697071727374757627 unmodified linespython -m server.app"""import osimport sysfrom contextlib import asynccontextmanagerfrom pathlib import Pathtry:from openenv.core.env_server.http_server import create_app10 unmodified linesfrom server.explainer_env_environment import ExplainerEnvironmentdef _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_uireturn 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 rolloutsgradio_builder=_build_dashboard_tab,)
README.md-7
server/app.py+20-1