🌟 The Multi-Agent Framework: First AI Software Company, Towards Natural Language Programming
delete Path transfer from app
xiangjinyufe6b73d01b0a
diff --git a/examples/spo/README.md b/examples/spo/README.mdindex f4fca0f79..28e6f58fc 100644--- a/examples/spo/README.md+++ b/examples/spo/README.md@@ -133,7 +133,7 @@ python -m examples.spo.optimize --helpFor a more user-friendly experience, you can use the Streamlit web interface to configure and run the optimizer:```bash-streamlit run metagpt/ext/spo/app.py+python -m streamlit run metagpt/ext/spo/app.py```### 4. View Resultsdiff --git a/metagpt/ext/spo/app.py b/metagpt/ext/spo/app.pyindex 8a102ad85..963775be4 100644--- a/metagpt/ext/spo/app.py+++ b/metagpt/ext/spo/app.py@@ -1,5 +1,4 @@import asyncio-import sysfrom pathlib import Pathfrom typing import Dict@@ -7,11 +6,9 @@ import streamlit as stimport yamlfrom loguru import logger as _logger-sys.path.append(str(Path(__file__).parents[3]))--from metagpt.const import METAGPT_ROOT # noqa: E402-from metagpt.ext.spo.components.optimizer import PromptOptimizer # noqa: E402-from metagpt.ext.spo.utils.llm_client import SPO_LLM, RequestType # noqa: E402+from metagpt.const import METAGPT_ROOT+from metagpt.ext.spo.components.optimizer import PromptOptimizer+from metagpt.ext.spo.utils.llm_client import SPO_LLM, RequestTypedef load_yaml_template(template_path: Path) -> Dict: