Skip to content

Commit 97ccc58

Browse files
Fix some code for clean autogenstudio (#5981)
<!-- Thank you for your contribution! Please review https://microsoft.github.io/autogen/docs/Contribute before opening a pull request. --> <!-- Please add a reviewer to the assignee section when you create a PR. If you don't have the access to it, we will shortly find a reviewer and assign them to your PR. --> ## Why are these changes needed? <!-- Please give a short summary of the change and the problem this solves. --> ## Related issue number <!-- For example: "Closes #1234" --> ## Checks - [x] I've included any doc changes needed for <https://microsoft.github.io/autogen/>. See <https://github.com/microsoft/autogen/blob/main/CONTRIBUTING.md> to build and test documentation locally. - [x] I've added tests (if relevant) corresponding to the changes introduced in this PR. - [x] I've made sure all auto checks have passed. Signed-off-by: zhanluxianshen <[email protected]> Co-authored-by: Victor Dibia <[email protected]>
1 parent eaef7ba commit 97ccc58

File tree

3 files changed

+3
-5
lines changed

3 files changed

+3
-5
lines changed

python/packages/autogen-studio/autogenstudio/cli.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import os
2-
import tempfile
32
import warnings
43
from typing import Optional
54

@@ -91,6 +90,7 @@ def serve(
9190
host: str = "127.0.0.1",
9291
port: int = 8084,
9392
workers: int = 1,
93+
reload: Annotated[bool, typer.Option("--reload")] = False,
9494
docs: bool = False,
9595
):
9696
"""
@@ -118,7 +118,7 @@ def serve(
118118
host=host,
119119
port=port,
120120
workers=workers,
121-
reload=False,
121+
reload=reload,
122122
)
123123

124124

python/packages/autogen-studio/autogenstudio/web/initialization.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
# api/initialization.py
22
import os
33
from pathlib import Path
4-
from typing import Dict
54

65
from dotenv import load_dotenv
76
from loguru import logger

python/packages/autogen-studio/autogenstudio/web/serve.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import os
2-
from typing import cast
32

4-
from fastapi import FastAPI, HTTPException
3+
from fastapi import FastAPI
54

65
from ..datamodel import Response
76
from ..teammanager import TeamManager

0 commit comments

Comments
 (0)