Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -24,7 +24,6 @@ import re
|
|
| 24 |
|
| 25 |
warnings.filterwarnings("ignore", category=DeprecationWarning)
|
| 26 |
|
| 27 |
-
load_dotenv()
|
| 28 |
client_id = os.getenv("client_id")
|
| 29 |
client_secret = os.getenv("client_secret")
|
| 30 |
auth_domain = os.getenv("auth_domain")
|
|
@@ -40,13 +39,13 @@ st.set_page_config(
|
|
| 40 |
initial_sidebar_state="expanded",
|
| 41 |
)
|
| 42 |
|
| 43 |
-
token = GetToken(auth_domain)
|
| 44 |
-
mgmt_api_token = token.client_credentials(
|
| 45 |
-
|
| 46 |
-
|
| 47 |
-
|
| 48 |
-
)
|
| 49 |
-
auth0 = Auth0(auth_domain, mgmt_api_token['access_token'])
|
| 50 |
|
| 51 |
# Initialize session state for messages and banned users
|
| 52 |
if 'messages' not in st.session_state:
|
|
|
|
| 24 |
|
| 25 |
warnings.filterwarnings("ignore", category=DeprecationWarning)
|
| 26 |
|
|
|
|
| 27 |
client_id = os.getenv("client_id")
|
| 28 |
client_secret = os.getenv("client_secret")
|
| 29 |
auth_domain = os.getenv("auth_domain")
|
|
|
|
| 39 |
initial_sidebar_state="expanded",
|
| 40 |
)
|
| 41 |
|
| 42 |
+
#token = GetToken(auth_domain)
|
| 43 |
+
#mgmt_api_token = token.client_credentials(
|
| 44 |
+
# client_id,
|
| 45 |
+
# client_secret,
|
| 46 |
+
# 'dev-u4kd3wndapfdk6dr.us.auth0.com'
|
| 47 |
+
#)
|
| 48 |
+
#auth0 = Auth0(auth_domain, mgmt_api_token['access_token'])
|
| 49 |
|
| 50 |
# Initialize session state for messages and banned users
|
| 51 |
if 'messages' not in st.session_state:
|