Ninad077 commited on
Commit
3521c6b
·
verified ·
1 Parent(s): bf662df

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +13 -13
app.py CHANGED
@@ -13,17 +13,17 @@ from threading import Thread
13
  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
 
28
 
29
  ## Single value - 268 --> 675
@@ -1145,8 +1145,8 @@ st.write(" ")
1145
  # Start a tunnel to the correct port
1146
 
1147
  # Connect to a port (e.g., 8501) without a custom subdomain
1148
- try:
1149
- ngrok_tunnel = ngrok.connect(8501) # Replace 8501 with your port number
1150
- print(f"ngrok tunnel URL: {ngrok_tunnel.public_url}")
1151
- except Exception as e:
1152
- print(f"Failed to start ngrok tunnel: {e}")
 
13
  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
 
28
 
29
  ## Single value - 268 --> 675
 
1145
  # Start a tunnel to the correct port
1146
 
1147
  # Connect to a port (e.g., 8501) without a custom subdomain
1148
+ # try:
1149
+ # ngrok_tunnel = ngrok.connect(8501) # Replace 8501 with your port number
1150
+ # print(f"ngrok tunnel URL: {ngrok_tunnel.public_url}")
1151
+ # except Exception as e:
1152
+ # print(f"Failed to start ngrok tunnel: {e}")