agentos-project / agentos

The Python Component System (PCS) is an API and CLI for building, running, and sharing Python code. AgentOS is a set of libraries built on top of PCS that make it easy to build, run, and share agents that use Reinforcement Learning.
https://agentos.org
Apache License 2.0
13 stars 4 forks source link

Port leaderboard home page to new Component model #401

Closed nickjalbert closed 2 years ago

nickjalbert commented 2 years ago

Note: based on PR #400

This ports the leaderboard landing page (i.e. http://localhost:8000/) to the new Component model. Here's the result after some local testing:

Screenshot 2022-06-13 at 14-23-10 AgentOS Leaderboard

A demo script:

# Start the local web server in a separate tab
# Clear the local DB by visiting http://localhost:8000/empty_database in your browser
cd example_agents/sb3_agent
rm -rf mlruns/
agentos run sb3_agent --function-name learn
agentos run sb3_agent --function-name evaluate
USE_LOCAL_SERVER=True agentos publish <agent run ID printed out after previous previous command>
# Now visit http://localhost:8000 and see the result of your run

Next on my list is to port:

nickjalbert commented 2 years ago

Thanks for the review!