Spaces:
Sleeping
Sleeping
Adding some warning messages
Browse files
app.py
CHANGED
@@ -356,8 +356,14 @@ def generate_topics(dataset, config, split, column, plot_type):
|
|
356 |
|
357 |
|
358 |
with gr.Blocks() as demo:
|
359 |
-
gr.
|
360 |
-
gr.
|
|
|
|
|
|
|
|
|
|
|
|
|
361 |
data_details_accordion = gr.Accordion("Data details", open=True)
|
362 |
with data_details_accordion:
|
363 |
with gr.Row():
|
@@ -400,6 +406,14 @@ with gr.Blocks() as demo:
|
|
400 |
topics_plot = gr.Plot()
|
401 |
with gr.Accordion("Topics Info", open=False):
|
402 |
topics_df = gr.DataFrame(interactive=False, visible=True)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
403 |
generate_button.click(
|
404 |
generate_topics,
|
405 |
inputs=[
|
|
|
356 |
|
357 |
|
358 |
with gr.Blocks() as demo:
|
359 |
+
gr.HTML("<h1 style='text-align: center;'>💠 Dataset Topic Discovery 🔭</h1>")
|
360 |
+
gr.HTML(
|
361 |
+
"<h3 style='text-align: center;'>Select a dataset and text column for topic modeling</h3>"
|
362 |
+
)
|
363 |
+
gr.HTML(
|
364 |
+
"<p style='text-align: center; color:orange;'>⚠ This space is in progress, and we're actively working on it, so you might find some bugs! Please report any issues you have in the Community tab to help us make it better for all.</p>"
|
365 |
+
)
|
366 |
+
|
367 |
data_details_accordion = gr.Accordion("Data details", open=True)
|
368 |
with data_details_accordion:
|
369 |
with gr.Row():
|
|
|
406 |
topics_plot = gr.Plot()
|
407 |
with gr.Accordion("Topics Info", open=False):
|
408 |
topics_df = gr.DataFrame(interactive=False, visible=True)
|
409 |
+
gr.HTML(
|
410 |
+
f"<p style='text-align: center; color:orange;'>⚠ This space processes datasets in batches of <b>{CHUNK_SIZE}</b>, with a maximum of <b>{MAX_ROWS}</b> rows. If you need further assistance, please open a new issue in the Community tab.</p>"
|
411 |
+
)
|
412 |
+
|
413 |
+
gr.Markdown(
|
414 |
+
"_Powered by [bertopic](https://maartengr.github.io/BERTopic/index.html) [datamapplot](https://datamapplot.readthedocs.io/en/latest/) and [duckdb](https://duckdb.org/)_"
|
415 |
+
)
|
416 |
+
|
417 |
generate_button.click(
|
418 |
generate_topics,
|
419 |
inputs=[
|