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 forward run_detail view #403

Closed nickjalbert closed 2 years ago

nickjalbert commented 2 years ago

This PR ports forward the run_detail view to the new models. To demo, click the run ID here:

Screenshot 2022-06-14 at 17-44-40 AgentOS Leaderboard

And you should be taken to a page like this:

Screenshot 2022-06-14 at 17-44-57 Run a6174a2cfb1c9392f9edaa45b28a972fc43b066c

Here's the demo script to populate the DB again:

# 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: