Spaces:
Sleeping
Sleeping
Added username field
Browse files
app.py
CHANGED
|
@@ -199,9 +199,10 @@ if selected_tab == 'Data Fetching':
|
|
| 199 |
|
| 200 |
if not st.session_state.redis_connected:
|
| 201 |
st.header("Redis Connection Settings")
|
| 202 |
-
|
|
|
|
| 203 |
redis_host = st.text_input("Redis Host")
|
| 204 |
-
redis_port = st.number_input("Redis Port", min_value=1, max_value=65535, value=
|
| 205 |
redis_password = st.text_input("Redis Password", type="password")
|
| 206 |
|
| 207 |
if st.button("Connect to Redis"):
|
|
@@ -209,7 +210,8 @@ if selected_tab == 'Data Fetching':
|
|
| 209 |
client = redis.Redis(
|
| 210 |
host=redis_host,
|
| 211 |
port=redis_port,
|
| 212 |
-
password=redis_password
|
|
|
|
| 213 |
)
|
| 214 |
|
| 215 |
if client.ping():
|
|
|
|
| 199 |
|
| 200 |
if not st.session_state.redis_connected:
|
| 201 |
st.header("Redis Connection Settings")
|
| 202 |
+
|
| 203 |
+
redis_username = st.text_input("Redis Username", value='default')
|
| 204 |
redis_host = st.text_input("Redis Host")
|
| 205 |
+
redis_port = st.number_input("Redis Port", min_value=1, max_value=65535, value=5555)
|
| 206 |
redis_password = st.text_input("Redis Password", type="password")
|
| 207 |
|
| 208 |
if st.button("Connect to Redis"):
|
|
|
|
| 210 |
client = redis.Redis(
|
| 211 |
host=redis_host,
|
| 212 |
port=redis_port,
|
| 213 |
+
password=redis_password,
|
| 214 |
+
username=redis_username
|
| 215 |
)
|
| 216 |
|
| 217 |
if client.ping():
|