You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

run.sh 1.1 kB

1234567891011121314151617181920212223242526272829
  1. #!/bin/bash
  2. # # Start a new tmux session named 'distributed_group_chat'
  3. tmux new-session -d -s distributed_group_chat
  4. # # Split the terminal into 2 vertical panes
  5. tmux split-window -h
  6. # # Split the left pane into 3 windows
  7. tmux select-pane -t distributed_group_chat:0.0
  8. tmux split-window -v
  9. tmux select-pane -t distributed_group_chat:0.0
  10. tmux split-window -v
  11. # # Split the right pane horizontally
  12. tmux select-pane -t distributed_group_chat:0.3
  13. tmux split-window -v
  14. # Select the first pane to start
  15. tmux select-pane -t distributed_group_chat:0.0
  16. # Activate the virtual environment and run the scripts in each pane
  17. tmux send-keys -t distributed_group_chat:0.0 "python run_host.py" C-m
  18. tmux send-keys -t distributed_group_chat:0.1 "chainlit run run_ui.py --port 8001" C-m
  19. tmux send-keys -t distributed_group_chat:0.3 "python run_writer_agent.py" C-m
  20. tmux send-keys -t distributed_group_chat:0.4 "python run_editor_agent.py" C-m
  21. tmux send-keys -t distributed_group_chat:0.2 "python run_group_chat_manager.py" C-m
  22. # # Attach to the session
  23. tmux attach-session -t distributed_group_chat