Compare commits

...

2 Commits

Author SHA1 Message Date
Rip&Tear
2b25bdfc2a flow template copy fix 2024-09-28 11:27:20 +08:00
João Moura
5a6b0ff398 temporary dropping excamples 2024-09-27 21:15:52 -03:00
2 changed files with 11 additions and 3 deletions

View File

@@ -90,7 +90,7 @@ Cutting-edge framework for orchestrating role-playing, autonomous AI agents. By
</li>
</ul>
</div>
<div style="width:30%">
<div style="width:25%">
<h2>How-To Guides</h2>
<ul>
<li>
@@ -165,7 +165,7 @@ Cutting-edge framework for orchestrating role-playing, autonomous AI agents. By
</li>
</ul>
</div>
<!-- <div style="width:30%">
<!-- <div style="width:25%">
<h2>Examples</h2>
<ul>
<li>

View File

@@ -38,7 +38,15 @@ def create_flow(name):
]
def process_file(src_file, dst_file):
with open(src_file, "r") as file:
if src_file.suffix in ['.pyc', '.pyo', '.pyd']:
return
try:
with open(src_file, "r", encoding="utf-8") as file:
content = file.read()
except Exception as e:
click.secho(f"Error processing file {src_file}: {e}", fg="red")
return
content = file.read()
content = content.replace("{{name}}", name)