Spaces:
Running
Running
Create F.py
Browse files
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()
|