Spaces:
Running
Running
File size: 472 Bytes
7b262a7 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
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()
|