delete Path transfer from app

This commit is contained in:
xiangjinyu 2025-02-12 19:39:55 +08:00
parent b71febf8d6
commit fe6b73d01b
2 changed files with 4 additions and 7 deletions

View file

@ -133,7 +133,7 @@ #### Option 3: Streamlit Web Interface
For 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 Results

View file

@ -1,5 +1,4 @@
import asyncio
import sys
from pathlib import Path
from typing import Dict
@ -7,11 +6,9 @@ import streamlit as st
import yaml
from 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, RequestType
def load_yaml_template(template_path: Path) -> Dict: