Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -354,8 +354,8 @@ if uploaded_file is not None:
|
|
354 |
help="Minimum number of documents required to form a topic"
|
355 |
)
|
356 |
except Exception as e:
|
357 |
-
|
358 |
-
|
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)
|
|
|
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)
|