kusa04 commited on
Commit
17e449a
·
verified ·
1 Parent(s): 76015ae

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -164,7 +164,7 @@ if summarize_btn:
164
  df = st.session_state.get("df")
165
 
166
  if df is None or df.empty:
167
- st.write("Please run 'Scrape' first.")
168
  st.stop()
169
 
170
  # Split the "Detail" texts into a list
@@ -219,7 +219,7 @@ if sentiment_btn:
219
  df = st.session_state.get("df")
220
 
221
  if df is None or df.empty:
222
- st.write("Please run 'Scrape' first.")
223
  st.stop()
224
 
225
  length = len(df)
@@ -336,7 +336,7 @@ if keyword_extraction_btn:
336
  user_query = st.session_state.get("user_query")
337
 
338
  if (df is None or df.empty) or (user_query is None):
339
- st.write("Please run 'Scrape' first.")
340
  st.stop()
341
 
342
  else:
 
164
  df = st.session_state.get("df")
165
 
166
  if df is None or df.empty:
167
+ st.write("Please run 'Scrape' with an accurate keyword first.")
168
  st.stop()
169
 
170
  # Split the "Detail" texts into a list
 
219
  df = st.session_state.get("df")
220
 
221
  if df is None or df.empty:
222
+ st.write("Please run 'Scrape' with an accurate keyword first.")
223
  st.stop()
224
 
225
  length = len(df)
 
336
  user_query = st.session_state.get("user_query")
337
 
338
  if (df is None or df.empty) or (user_query is None):
339
+ st.write("Please run 'Scrape' with an accurate keyword first.")
340
  st.stop()
341
 
342
  else: