mirror of
https://github.com/sunblaze-ucb/cybergym.git
synced 2026-10-12 08:42:24 +00:00
feat: binary only mode
This commit is contained in:
@@ -11,6 +11,7 @@ API_KEY = os.getenv("CYBERGYM_API_KEY")
|
||||
API_KEY_NAME = "X-API-Key"
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
|
||||
def run_verify(agent_id: str, server: str):
|
||||
with httpx.Client(base_url=server, timeout=1200) as client:
|
||||
headers = {
|
||||
@@ -28,6 +29,7 @@ def run_verify(agent_id: str, server: str):
|
||||
except Exception as e:
|
||||
logger.error(f"Error during verification for agent {agent_id}: {e}")
|
||||
|
||||
|
||||
def load_results(pocdb_path: Path, agent_id: str):
|
||||
engine = init_engine(pocdb_path)
|
||||
with Session(engine) as session:
|
||||
@@ -60,4 +62,4 @@ if __name__ == "__main__":
|
||||
args = parser.parse_args()
|
||||
|
||||
run_verify(args.agent_id, args.server)
|
||||
load_results(args.pocdb_path, args.agent_id)
|
||||
load_results(args.pocdb_path, args.agent_id)
|
||||
|
||||
Reference in New Issue
Block a user