Ninad077 commited on
Commit
88892b2
·
verified ·
1 Parent(s): 5e51b23

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -9
app.py CHANGED
@@ -14,14 +14,14 @@ from pyngrok import conf, ngrok
14
  import requests
15
 
16
  # Manually set ngrok path
17
- ngrok_path = "/Users/ninadmandavkar/Desktop/ngrok/ngrok 3"
18
 
19
  # Set the ngrok path in the configuration
20
- config = conf.get_default()
21
- config.ngrok_path = ngrok_path
22
 
23
  # Set your ngrok auth token
24
- ngrok.set_auth_token('2jQ6LRMBFqe25TP7o2ugti9EH6Y_3mBzBYbsjZmhh69eGq2Q1')
25
 
26
  # logging.basicConfig(level=logging.INFO)
27
 
@@ -2106,8 +2106,8 @@ st.write(" ")
2106
  # Start a tunnel to the correct port
2107
 
2108
  # Connect to a port (e.g., 8501) without a custom subdomain
2109
- try:
2110
- ngrok_tunnel = ngrok.connect(8501) # Replace 8501 with your port number
2111
- print(f"ngrok tunnel URL: {ngrok_tunnel.public_url}")
2112
- except Exception as e:
2113
- print(f"Failed to start ngrok tunnel: {e}")
 
14
  import requests
15
 
16
  # Manually set ngrok path
17
+ # ngrok_path = "/Users/ninadmandavkar/Desktop/ngrok/ngrok 3"
18
 
19
  # Set the ngrok path in the configuration
20
+ # config = conf.get_default()
21
+ # config.ngrok_path = ngrok_path
22
 
23
  # Set your ngrok auth token
24
+ # ngrok.set_auth_token('2jQ6LRMBFqe25TP7o2ugti9EH6Y_3mBzBYbsjZmhh69eGq2Q1')
25
 
26
  # logging.basicConfig(level=logging.INFO)
27
 
 
2106
  # Start a tunnel to the correct port
2107
 
2108
  # Connect to a port (e.g., 8501) without a custom subdomain
2109
+ # try:
2110
+ # ngrok_tunnel = ngrok.connect(8501) # Replace 8501 with your port number
2111
+ # print(f"ngrok tunnel URL: {ngrok_tunnel.public_url}")
2112
+ # except Exception as e:
2113
+ # print(f"Failed to start ngrok tunnel: {e}")