Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -216,13 +216,14 @@ if selected_tab == 'Data Fetching':
|
|
216 |
st.success("Successfully connected to Redis!")
|
217 |
st.session_state.redis_connected = True
|
218 |
st.session_state.client = client
|
|
|
219 |
else:
|
220 |
st.error("Failed to connect to Redis. Please check your settings.")
|
221 |
except redis.ConnectionError:
|
222 |
st.error("Failed to connect to Redis. Please check your settings and try again.")
|
223 |
|
224 |
if st.session_state.redis_connected:
|
225 |
-
if
|
226 |
st.success("You are all set!")
|
227 |
else:
|
228 |
url = st.text_input("Enter git clone URL")
|
|
|
216 |
st.success("Successfully connected to Redis!")
|
217 |
st.session_state.redis_connected = True
|
218 |
st.session_state.client = client
|
219 |
+
st.session_state.host = redis_host
|
220 |
else:
|
221 |
st.error("Failed to connect to Redis. Please check your settings.")
|
222 |
except redis.ConnectionError:
|
223 |
st.error("Failed to connect to Redis. Please check your settings and try again.")
|
224 |
|
225 |
if st.session_state.redis_connected:
|
226 |
+
if st.session_state.host == os.environ['REDIS_HOST']:
|
227 |
st.success("You are all set!")
|
228 |
else:
|
229 |
url = st.text_input("Enter git clone URL")
|