Skip to content

Commit

Permalink
format fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
victordibia committed Dec 18, 2024
1 parent db65f7f commit b01896d
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@
MultiModalMessage,
StopMessage,
TextMessage,
ToolCallRequestEvent,
ToolCallExecutionEvent,
ToolCallRequestEvent,
)
from autogen_core import CancellationToken, FunctionCall
from autogen_core.models._types import FunctionExecutionResult
Expand Down
5 changes: 2 additions & 3 deletions python/packages/autogen-studio/autogenstudio/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,7 @@ def ui(
port=port,
workers=workers,
reload=reload,
reload_excludes=["**/alembic/*", "**/alembic.ini",
"**/versions/*"] if reload else None,
reload_excludes=["**/alembic/*", "**/alembic.ini", "**/versions/*"] if reload else None,
)


Expand All @@ -67,7 +66,7 @@ def serve(
Args:
team (str): Path to the team json file.
host (str, optional): Host to run the UI on. Defaults to 127.0.0.1 (localhost).
port (int, optional): Port to run the UI on. Defaults to 8084
port (int, optional): Port to run the UI on. Defaults to 8084
workers (int, optional): Number of workers to run the UI with. Defaults to 1.
reload (bool, optional): Whether to reload the UI on code changes. Defaults to False.
docs (bool, optional): Whether to generate API docs. Defaults to False.
Expand Down
2 changes: 1 addition & 1 deletion python/packages/autogen-studio/autogenstudio/version.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
VERSION = "0.4.0.dev44"
VERSION = "0.4.0.dev41"
__version__ = VERSION
APP_NAME = "autogenstudio"
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
MultiModalMessage,
StopMessage,
TextMessage,
ToolCallRequestEvent,
ToolCallExecutionEvent,
ToolCallRequestEvent,
)
from autogen_core import CancellationToken
from autogen_core import Image as AGImage
Expand Down
6 changes: 2 additions & 4 deletions python/packages/autogen-studio/autogenstudio/web/serve.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,9 @@

@app.get("/predict/{task}")
async def predict(task: str):
response = Response(
message="Task successfully completed", status=True, data=None)
response = Response(message="Task successfully completed", status=True, data=None)
try:
result_message = await team_manager.run(
task=task, team_config=team_file_path)
result_message = await team_manager.run(task=task, team_config=team_file_path)
response.data = result_message
except Exception as e:
response.message = str(e)
Expand Down

0 comments on commit b01896d

Please sign in to comment.