kambris commited on
Commit
9f7bbb4
·
verified ·
1 Parent(s): 7173364

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -353,7 +353,9 @@ if uploaded_file is not None:
353
  value=30,
354
  help="Minimum number of documents required to form a topic"
355
  )
356
-
 
 
357
  if st.button("Process Data"):
358
  with st.spinner("Processing your data..."):
359
  summaries, topic_model = process_and_summarize(df, top_n=top_n, topic_strategy=topic_strategy, n_topics=n_topics, min_topic_size=min_topic_size)
 
353
  value=30,
354
  help="Minimum number of documents required to form a topic"
355
  )
356
+ except Exception as e:
357
+ st.error(f"Error loading models: {str(e)}")
358
+ st.stop()
359
  if st.button("Process Data"):
360
  with st.spinner("Processing your data..."):
361
  summaries, topic_model = process_and_summarize(df, top_n=top_n, topic_strategy=topic_strategy, n_topics=n_topics, min_topic_size=min_topic_size)