-
Notifications
You must be signed in to change notification settings - Fork 434
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: complete the command line (#55)
* fix: complete the command line for agentverse's demos to make it more convenient for users to use * fix: better cli command name * fix: change default tasks_dir --------- Co-authored-by: Weize Chen <[email protected]> Co-authored-by: chenweize1998 <[email protected]>
- Loading branch information
1 parent
8107ee4
commit ccf4319
Showing
8 changed files
with
85 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import os | ||
from agentverse.gui import GUI | ||
from argparse import ArgumentParser | ||
|
||
parser = ArgumentParser() | ||
parser.add_argument("--task", type=str, default="simulation/nlp_classroom_9players") | ||
parser.add_argument( | ||
"--tasks_dir", | ||
type=str, | ||
default=os.path.join(os.path.dirname(__file__), "..", "agentverse", "tasks"), | ||
) | ||
args = parser.parse_args() | ||
|
||
|
||
def cli_main(): | ||
ui = GUI(args.task, args.tasks_dir) | ||
ui.launch() | ||
|
||
|
||
if __name__ == "__main__": | ||
cli_main() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters