mirror of
https://github.com/FoundationAgents/MetaGPT.git
synced 2026-04-25 00:36:55 +02:00
delete Path transfer from app
This commit is contained in:
parent
b71febf8d6
commit
fe6b73d01b
2 changed files with 4 additions and 7 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue