mirror of
https://github.com/aljazceru/gpt-engineer.git
synced 2025-12-19 05:35:21 +01:00
black formatted
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import re
|
||||
|
||||
|
||||
def parse_chat(chat):# -> List[Tuple[str, str]]:
|
||||
def parse_chat(chat): # -> List[Tuple[str, str]]:
|
||||
# Get all ``` blocks
|
||||
regex = r"```(.*?)```"
|
||||
|
||||
@@ -15,7 +15,7 @@ def parse_chat(chat):# -> List[Tuple[str, str]]:
|
||||
code = "\n".join(code)
|
||||
# Add the file to the list
|
||||
files.append((path, code))
|
||||
|
||||
|
||||
return files
|
||||
|
||||
|
||||
@@ -24,4 +24,4 @@ def to_files(chat, workspace):
|
||||
|
||||
files = parse_chat(chat)
|
||||
for file_name, file_content in files:
|
||||
workspace[file_name] = file_content
|
||||
workspace[file_name] = file_content
|
||||
|
||||
Reference in New Issue
Block a user