-
Notifications
You must be signed in to change notification settings - Fork 161
Expand file tree
/
Copy pathstart.py
More file actions
executable file
·36 lines (29 loc) · 854 Bytes
/
start.py
File metadata and controls
executable file
·36 lines (29 loc) · 854 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#!/usr/bin/env python3
"""
Simple startup script for Karpathy agent.
Runs sandbox setup and then starts the ADK web interface.
"""
import subprocess
import sys
from karpathy.utils import setup_sandbox
def main():
"""Run setup and start the ADK web interface."""
print("Starting Karpathy agent...")
# Step 1: Setup sandbox
print("\nSetting up sandbox...")
try:
setup_sandbox()
except Exception as e:
print(f"Error setting up sandbox: {e}")
sys.exit(1)
# Step 2: Start ADK web interface
print("\nStarting ADK web interface...")
try:
subprocess.run(["adk", "web"], check=True)
except KeyboardInterrupt:
print("\nShutting down...")
except Exception as e:
print(f"Error starting ADK web: {e}")
sys.exit(1)
if __name__ == "__main__":
main()