Spaces:
Sleeping
Sleeping
fix progress
Browse files
app.py
CHANGED
@@ -35,7 +35,7 @@ def get_docs_from_parquet(parquet_urls, column, offset, limit):
|
|
35 |
return df[column].tolist()
|
36 |
|
37 |
|
38 |
-
def generate_topics(dataset, config, split, column, nested_column
|
39 |
logging.info(
|
40 |
f"Generating topics for {dataset} with config {config} {split} {column} {nested_column}"
|
41 |
)
|
@@ -121,7 +121,6 @@ with gr.Blocks() as demo:
|
|
121 |
generate_button = gr.Button("Generate Notebook", variant="primary")
|
122 |
|
123 |
gr.Markdown("## Topics info")
|
124 |
-
progress = gr.Progress()
|
125 |
topics_df = gr.DataFrame(interactive=False, visible=True)
|
126 |
topics_plot = gr.Plot()
|
127 |
generate_button.click(
|
@@ -132,7 +131,6 @@ with gr.Blocks() as demo:
|
|
132 |
split_dropdown,
|
133 |
text_column_dropdown,
|
134 |
nested_text_column_dropdown,
|
135 |
-
progress,
|
136 |
],
|
137 |
outputs=[topics_df, topics_plot],
|
138 |
)
|
|
|
35 |
return df[column].tolist()
|
36 |
|
37 |
|
38 |
+
def generate_topics(dataset, config, split, column, nested_column):
|
39 |
logging.info(
|
40 |
f"Generating topics for {dataset} with config {config} {split} {column} {nested_column}"
|
41 |
)
|
|
|
121 |
generate_button = gr.Button("Generate Notebook", variant="primary")
|
122 |
|
123 |
gr.Markdown("## Topics info")
|
|
|
124 |
topics_df = gr.DataFrame(interactive=False, visible=True)
|
125 |
topics_plot = gr.Plot()
|
126 |
generate_button.click(
|
|
|
131 |
split_dropdown,
|
132 |
text_column_dropdown,
|
133 |
nested_text_column_dropdown,
|
|
|
134 |
],
|
135 |
outputs=[topics_df, topics_plot],
|
136 |
)
|