tonne commited on
Commit
e15711e
1 Parent(s): 4a89467

add jupyter

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -2,10 +2,10 @@ import streamlit as st
2
  import os
3
  from pyngrok import ngrok
4
  import random
 
5
 
6
  port = random.randint(10000, 99999)
7
- # ngrok.set_auth_token("1T1Qgdhjtcgt9qsAeJoIkJFREiE_6fxnYfcsDQizRGRZ63iGW")
8
- st.write("get_tunnels: ", ngrok.get_tunnels())
9
 
10
  os.system(f"""
11
  jupyter lab --ip 0.0.0.0 --port {port} --allow-root --NotebookApp.token='' --NotebookApp.password='' &
 
2
  import os
3
  from pyngrok import ngrok
4
  import random
5
+ ngrok.set_auth_token("1T1Qgdhjtcgt9qsAeJoIkJFREiE_6fxnYfcsDQizRGRZ63iGW")
6
 
7
  port = random.randint(10000, 99999)
8
+ st.write("previous_tunnels: ", ngrok.get_tunnels())
 
9
 
10
  os.system(f"""
11
  jupyter lab --ip 0.0.0.0 --port {port} --allow-root --NotebookApp.token='' --NotebookApp.password='' &