mirror of
https://github.com/FoundationAgents/MetaGPT.git
synced 2026-06-14 15:25:17 +02:00
fix bug
This commit is contained in:
parent
b2aac3ebd5
commit
9e989af31e
1 changed files with 4 additions and 2 deletions
|
|
@ -1,3 +1,5 @@
|
|||
from pathlib import Path
|
||||
|
||||
import chainlit as cl
|
||||
from init_setup import ChainlitEnv
|
||||
|
||||
|
|
@ -67,8 +69,8 @@ async def startup(message: cl.Message) -> None:
|
|||
|
||||
await company.run(n_round=5)
|
||||
|
||||
workdir = company.env.context.git_repo.workdir
|
||||
files = company.env.context.git_repo.get_files(workdir)
|
||||
workdir = Path(company.env.context.config.project_path)
|
||||
files = [file.name for file in workdir.iterdir() if file.is_file()]
|
||||
files = "\n".join([f"{workdir}/{file}" for file in files if not file.startswith(".git")])
|
||||
|
||||
await cl.Message(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue