Skip to content

Commit 8823b12

Browse files
committed
open browser
1 parent 0075788 commit 8823b12

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

quickstart/src/services.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,17 @@
44
from src.client import client
55
from src.workflows.workflow import GreetingWorkflow
66
from watchfiles import run_process
7+
from restack_ai.restack import ServiceOptions
8+
import webbrowser
9+
710
async def main():
811

912
await client.start_service(
1013
workflows=[GreetingWorkflow],
11-
functions=[welcome]
14+
functions=[welcome],
15+
options=ServiceOptions(
16+
endpoints=True
17+
)
1218
)
1319

1420
def run_services():
@@ -20,6 +26,7 @@ def run_services():
2026
def watch_services():
2127
watch_path = os.getcwd()
2228
print(f"Watching {watch_path} and its subdirectories for changes...")
29+
webbrowser.open("http://localhost:5233")
2330
run_process(watch_path, recursive=True, target=run_services)
2431

2532
if __name__ == "__main__":

0 commit comments

Comments
 (0)