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 runs page to new models #404

Closed nickjalbert closed 2 years ago

nickjalbert commented 2 years ago

This ports the run overview page (http://localhost:8000/runs) to the new models.

Screenshot 2022-06-15 at 13-40-28 Runs

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, next up are the tests:

andyk commented 2 years ago

This looks great!

nickjalbert commented 2 years ago

Thanks for the review!