#!/usr/bin/env python3 """ šŸš€ JARVIS Quantum AI Suite - Deployment Verification ===================================================== Quick test to ensure all components work before Hugging Face deployment. """ import sys from pathlib import Path def test_imports(): """Test all critical imports""" print("šŸ” Testing imports...") # Test src modules try: sys.path.insert(0, str(Path(__file__).parent / "src")) # Test quantum LLM from quantum_llm import quantum_transformer print("āœ… Quantum LLM: OK") # Test thought compression from thought_compression import tcl_engine print("āœ… Thought Compression: OK") # Test core engines from core import adapter_engine print("āœ… Core Engines: OK") except Exception as e: print(f"āŒ Import error: {e}") return False return True def test_demo_modules(): """Test demo modules""" print("\nšŸŽ­ Testing demo modules...") try: # Test cancer demo import gradio_quantum_cancer_demo print("āœ… Cancer Demo: OK") # Test Jarvis demo import jarvis_v1_gradio_space print("āœ… Jarvis Demo: OK") except Exception as e: print(f"āŒ Demo error: {e}") return False return True def test_main_app(): """Test main app""" print("\nšŸš€ Testing main app...") try: # This will test if the main app can import everything import app print("āœ… Main App: OK") # Test interface creation demo = app.create_interface() print("āœ… Interface Creation: OK") except Exception as e: print(f"āŒ App error: {e}") return False return True def main(): """Run all tests""" print("🌌 JARVIS Quantum AI Suite - Deployment Verification") print("=" * 55) tests = [ test_imports, test_demo_modules, test_main_app ] passed = 0 for test in tests: if test(): passed += 1 print(f"\nšŸ“Š Results: {passed}/{len(tests)} tests passed") if passed == len(tests): print("šŸŽ‰ All tests passed! Ready for Hugging Face deployment!") return True else: print("āŒ Some tests failed. Please fix before deployment.") return False if __name__ == "__main__": success = main() sys.exit(0 if success else 1)