Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
rayrayraykk committed Aug 13, 2024
1 parent 34da389 commit 1f786ae
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/agentscope/studio/_app_online.py
Original file line number Diff line number Diff line change
Expand Up @@ -384,4 +384,12 @@ def set_locale() -> Response:


if __name__ == "__main__":
import sys

if len(sys.argv) > 1:
try:
PORT = int(sys.argv[1])
except ValueError:
print(f"Invalid port number. Using default port {PORT}.")

_app.run(host="0.0.0.0", port=PORT)

0 comments on commit 1f786ae

Please sign in to comment.