Skip to content

Commit

Permalink
chore: pass kwargs to GradioApp
Browse files Browse the repository at this point in the history
  • Loading branch information
phil65 committed Dec 29, 2024
1 parent 0e02c26 commit 52f1492
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/llmling_agent_web/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,7 @@ def launch_app(
server_name: str = "127.0.0.1",
server_port: int | None = None,
block: bool = True,
**kwargs: Any,
) -> tuple[App, str, str]:
"""Launch the LLMling web interface.
Expand All @@ -252,6 +253,7 @@ def launch_app(
server_name: Server hostname (default: "127.0.0.1")
server_port: Optional server port number
block: Whether to block the thread. Set to False when using programmatically.
kwargs: Additional keyword arguments to pass to `launch`
"""
import asyncio
import platform
Expand All @@ -268,6 +270,7 @@ def launch_app(
server_name=server_name,
server_port=server_port,
prevent_thread_lock=not block,
**kwargs,
)


Expand Down

0 comments on commit 52f1492

Please sign in to comment.