Skip to content

🌟 The Multi-Agent Framework: First AI Software Company, Towards Natural Language Programming

update imitate_webpage.py

mannaandpoem38929dc12481
diff --git a/examples/imitate_webpage.py b/examples/imitate_webpage.py
index b4610d5e0..da46af0a6 100644
--- a/examples/imitate_webpage.py
+++ b/examples/imitate_webpage.py
@@ -9,7 +9,8 @@ from metagpt.roles.code_interpreter import CodeInterpreter
async def main():
- prompt = """This is a URL of webpage: 'https://www.baidu.com/' .
+ web_url = 'https://www.baidu.com/'
+ prompt = f"""This is a URL of webpage: '{web_url}' .
Firstly, utilize Selenium and WebDriver for rendering.
Secondly, convert image to a webpage including HTML, CSS and JS in one go.
Finally, save webpage in a text file.