Ransaka commited on
Commit
cb6e23f
1 Parent(s): 1ad22d9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
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 redis_host == os.environ['REDIS_HOST']:
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")