lea97338 commited on
Commit
aeb195a
·
verified ·
1 Parent(s): c385bd3

Create F.py

Browse files
Files changed (1) hide show
  1. F.py +14 -0
F.py ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from pyngrok import ngrok
2
+ import sys
3
+
4
+ auth_token = "3IKq23oaCZLQzw7gyReFXkiHOtp_726tyz1mkexyHTHxUtwwb"
5
+ ngrok.set_auth_token(auth_token)
6
+
7
+ try:
8
+ port = int(input("Entrez le port a lancer : "))
9
+ except ValueError:
10
+ sys.exit(1)
11
+
12
+ url = ngrok.connect(port)
13
+ print(url.public_url)
14
+ ngrok.get_ngrok_process().proc.wait()