File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed
Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change 44from src .client import client
55from src .workflows .workflow import GreetingWorkflow
66from watchfiles import run_process
7+ from restack_ai .restack import ServiceOptions
8+ import webbrowser
9+
710async 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
1420def run_services ():
@@ -20,6 +26,7 @@ def run_services():
2026def 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
2532if __name__ == "__main__" :
You can’t perform that action at this time.
0 commit comments