Spaces:
Runtime error
Runtime error
add jupyter
Browse files
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 |
-
|
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='' &
|