Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -527,10 +527,7 @@ if uploaded_file is not None:
|
|
527 |
start_time = time.time()
|
528 |
time_placeholder = st.empty()
|
529 |
with st.spinner("Processing your data..."):
|
530 |
-
|
531 |
-
current_time = time.time()
|
532 |
-
elapsed_time = current_time - start_time
|
533 |
-
time_placeholder.metric(label="Elapsed Time", value=f"{int(elapsed_time)} seconds")
|
534 |
|
535 |
summaries, topic_model = process_and_summarize(
|
536 |
df,
|
@@ -542,6 +539,10 @@ if uploaded_file is not None:
|
|
542 |
n_topics=n_topics if topic_strategy == "Manual" else None,
|
543 |
min_topic_size=3
|
544 |
)
|
|
|
|
|
|
|
|
|
545 |
|
546 |
if summaries:
|
547 |
st.success("Analysis complete!")
|
|
|
527 |
start_time = time.time()
|
528 |
time_placeholder = st.empty()
|
529 |
with st.spinner("Processing your data..."):
|
530 |
+
|
|
|
|
|
|
|
531 |
|
532 |
summaries, topic_model = process_and_summarize(
|
533 |
df,
|
|
|
539 |
n_topics=n_topics if topic_strategy == "Manual" else None,
|
540 |
min_topic_size=3
|
541 |
)
|
542 |
+
|
543 |
+
end_time = time.time()
|
544 |
+
elapsed_time = end_time - start_time
|
545 |
+
time_placeholder.metric(label="Processing Time", value=f"{int(elapsed_time)} seconds")
|
546 |
|
547 |
if summaries:
|
548 |
st.success("Analysis complete!")
|