Spaces:
Running
Running
Delete F.py
Browse files
F.py
DELETED
|
@@ -1,18 +0,0 @@
|
|
| 1 |
-
import ngrok
|
| 2 |
-
import time
|
| 3 |
-
|
| 4 |
-
# Ouverture du tunnel avec votre jeton d'authentification
|
| 5 |
-
listener = ngrok.connect(
|
| 6 |
-
addr=8180,
|
| 7 |
-
authtoken="3IKq23oaCZLQzw7gyReFXkiHOtp_726tyz1mkexyHTHxUtwwb"
|
| 8 |
-
)
|
| 9 |
-
|
| 10 |
-
# Affichage de l'URL publique générée
|
| 11 |
-
print(f"✅ Tunnel actif ! Accès public via : {listener.url()}")
|
| 12 |
-
|
| 13 |
-
# Maintien du script en cours d'exécution
|
| 14 |
-
try:
|
| 15 |
-
while True:
|
| 16 |
-
time.sleep(1)
|
| 17 |
-
except KeyboardInterrupt:
|
| 18 |
-
print("\n👋 Fermeture du tunnel ngrok.")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|