forked from cuppibla/adk_tutorial
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrun.sh
More file actions
executable file
Β·28 lines (21 loc) Β· 756 Bytes
/
run.sh
File metadata and controls
executable file
Β·28 lines (21 loc) Β· 756 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
#!/bin/bash
echo "π Starting ADK Web UI with persistent session storage..."
# Create sessions directory if it doesn't exist
SESSIONS_DIR="$HOME/.adk/sessions"
mkdir -p "$SESSIONS_DIR"
# SQLite database file for session persistence
DB_FILE="$SESSIONS_DIR/adk_web_sessions.db"
SESSION_URI="sqlite:///$DB_FILE"
echo "ποΈ Session database: $DB_FILE"
echo "π‘ Session URI: $SESSION_URI"
# Start ADK Web UI with persistent sessions
echo "π Starting ADK Web UI on http://localhost:8080..."
echo "π Evaluation results and user preferences will now persist across requests!"
adk web \
--session_service_uri="$SESSION_URI" \
--host=127.0.0.1 \
--port=8080 \
--log_level=info \
--reload \
.
echo "π ADK Web UI stopped"