Spaces:
Running
Running
Update F.py
Browse files1 unmodified line234567891011121314151617181 unmodified lineimport sys# Désinstalle l'ancien package problématique s'il est détecté et installe le bon SDKtry:import ngrok# Vérification de sécurité pour s'assurer qu'on a le bon module avec la fonction forwardif not hasattr(ngrok, "forward"):raise ImportErrorexcept ImportError:import subprocessprint("Nettoyage et installation du bon SDK ngrok...")subprocess.check_call([sys.executable, "-m", "pip", "uninstall", "ngrok-api", "-y"], stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL)subprocess.check_call([sys.executable, "-m", "pip", "install", "--upgrade", "ngrok"])import ngrok# Intégration de votre token d'authentificationAUTHTOKEN = "3IKq23oaCZLQzw7gyReFXkiHOtp_726tyz1mkexyHTHxUtwwb"1 unmodified line234567891 unmodified lineimport sys# Désinstalle l'ancien package problématique s'il est détecté et installe le bon SDKimport ngrok# Intégration de votre token d'authentificationAUTHTOKEN = "3IKq23oaCZLQzw7gyReFXkiHOtp_726tyz1mkexyHTHxUtwwb"
F.py+2-11