File size: 1,774 Bytes
b4fa832
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
#!/usr/bin/env python3
"""
Quick Start Script for VISH AI
Run this to start the self-training system locally
"""

import subprocess
import sys
import os

def check_dependencies():
    """Check if required packages are installed"""
    print("πŸ” Checking dependencies...")
    try:
        import transformers
        import gradio
        import fastapi
        import peft
        print("βœ… All dependencies installed!")
        return True
    except ImportError as e:
        print(f"❌ Missing dependency: {e}")
        print("\nπŸ’‘ Install with: pip install -r requirements.txt")
        return False

def create_directories():
    """Create necessary directories"""
    print("πŸ“ Creating directories...")
    os.makedirs("data", exist_ok=True)
    os.makedirs("models/vish-ai-mini", exist_ok=True)
    print("βœ… Directories created!")

def start_server():
    """Start the VISH AI server"""
    print("\n" + "=" * 60)
    print("πŸš€ Starting VISH AI Self-Training System")
    print("=" * 60)
    print("\nπŸ“ Access the interface at: http://localhost:7860")
    print("πŸ“ API documentation at: http://localhost:7860/docs")
    print("\n⌨️  Press CTRL+C to stop the server\n")
    print("=" * 60 + "\n")
    
    try:
        subprocess.run([sys.executable, "-m", "app.main"])
    except KeyboardInterrupt:
        print("\n\nπŸ‘‹ Shutting down VISH AI...")

def main():
    print("""
    🌟 VISH AI - Self-Training System
    ═══════════════════════════════════
    
    Welcome to the intelligent AI that learns from you!
    """)
    
    if not check_dependencies():
        sys.exit(1)
    
    create_directories()
    start_server()

if __name__ == "__main__":
    main()