#!/bin/bash # Video Learning Demo Script for Linux/Mac # This script starts the dashboard and opens the video learning page echo "============================================" echo "AutoGLM Video Learning Demo" echo "============================================" echo "" echo "Starting Dashboard..." echo "" # Start the dashboard in background python -m uvicorn dashboard.main:app --host 0.0.0.0 --port 8080 --reload & DASHBOARD_PID=$! echo "Waiting for dashboard to start..." sleep 3 echo "" echo "Dashboard starting at: http://localhost:8080" echo "Opening Video Learning page in browser..." echo "" # Open the video learning page if command -v xdg-open > /dev/null; then xdg-open http://localhost:8080/static/video-learning.html elif command -v open > /dev/null; then open http://localhost:8080/static/video-learning.html else echo "Please open your browser and navigate to:" echo "http://localhost:8080/static/video-learning.html" fi echo "" echo "============================================" echo "Video Learning Demo is ready!" echo "============================================" echo "" echo "Press Ctrl+C to stop the dashboard" echo "" # Wait for dashboard process wait $DASHBOARD_PID