Spaces:
Sleeping
Sleeping
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()
|