Skip to content

Commit

Permalink
fix bug alloc server
Browse files Browse the repository at this point in the history
  • Loading branch information
pan-x-c committed Sep 5, 2024
1 parent 6e4531f commit 4d09382
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/agentscope/studio/_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -384,7 +384,7 @@ def _alloc_server() -> Response:
if len(servers) == 0:
return jsonify({"status": "fail"})
server = choice(servers)
if not RpcClient(host=server.host, port=server.port).is_alive():
if RpcClient(host=server.host, port=server.port).is_alive():
return jsonify(
{
"host": server.host,
Expand Down

0 comments on commit 4d09382

Please sign in to comment.