Ninad077 commited on
Commit
b271f4e
·
verified ·
1 Parent(s): d40c768

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -10
app.py CHANGED
@@ -13,15 +13,15 @@ from threading import Thread
13
  from pyngrok import conf, ngrok
14
  import requests
15
 
16
- # Manually set ngrok path
17
- ngrok_path = "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
 
@@ -1141,8 +1141,8 @@ st.write(" ")
1141
  # Start a tunnel to the correct port
1142
 
1143
  # Connect to a port (e.g., 8501) without a custom subdomain
1144
- try:
1145
- ngrok_tunnel = ngrok.connect(8501) # Replace 8501 with your port number
1146
- print(f"ngrok tunnel URL: {ngrok_tunnel.public_url}")
1147
- except Exception as e:
1148
- 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 = "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
 
 
1141
  # Start a tunnel to the correct port
1142
 
1143
  # Connect to a port (e.g., 8501) without a custom subdomain
1144
+ # try:
1145
+ # ngrok_tunnel = ngrok.connect(8501) # Replace 8501 with your port number
1146
+ # print(f"ngrok tunnel URL: {ngrok_tunnel.public_url}")
1147
+ # except Exception as e:
1148
+ # print(f"Failed to start ngrok tunnel: {e}")