#!/usr/bin/env python3 """ Script simple pour vérifier que le déploiement HF fonctionne """ import os from bayesian_network_interface import AutonomyBayesianNetwork def check_files(): print("🔍 Vérification des fichiers:") print(f" - Répertoire courant: {os.getcwd()}") print(f" - Fichiers présents:") for file in sorted(os.listdir(".")): if not file.startswith('.') and not file.startswith('__'): size = os.path.getsize(file) if os.path.isfile(file) else 0 print(f" • {file} ({size} bytes)") def check_network(): print("\n🧠 Test réseau:") bn = AutonomyBayesianNetwork() print(f" - pgmpy_model chargé: {bn.pgmpy_model is not None}") if bn.pgmpy_model: print(f" - Nœuds: {len(list(bn.pgmpy_model.nodes()))}") print(f" - Arcs: {len(list(bn.pgmpy_model.edges()))}") structure = bn.get_network_structure() print(f" - Structure nœuds: {len(structure['nodes'])}") print(f" - Structure arcs: {len(structure['edges'])}") if __name__ == "__main__": check_files() check_network()