Spaces:
Running
Running
Disabled console logging as it was getting in the way of file load into the app
Browse files
app.py
CHANGED
@@ -252,7 +252,7 @@ def extract_topics(data, in_files, min_docs_slider, in_colnames, max_topics_slid
|
|
252 |
|
253 |
topics_text, probs = topic_model.fit_transform(docs, embeddings_out)
|
254 |
|
255 |
-
|
256 |
|
257 |
if topics_text.size == 0:
|
258 |
# Handle the empty array case
|
@@ -504,7 +504,7 @@ with block:
|
|
504 |
reduce_outliers_btn = gr.Button("Reduce outliers")
|
505 |
represent_llm_btn = gr.Button("Generate topic labels with LLMs")
|
506 |
|
507 |
-
logs = gr.Textbox(label="Processing logs.")
|
508 |
|
509 |
|
510 |
|
@@ -539,7 +539,7 @@ with block:
|
|
539 |
|
540 |
plot_btn.click(fn=visualise_topics, inputs=[topic_model_state, docs_state, data_file_name_no_ext_state, low_resource_mode_opt, embeddings_state, label_list_state, sample_slide, visualisation_type_radio], outputs=[output_single_text, out_plot_file, plot], api_name="plot")
|
541 |
|
542 |
-
block.load(read_logs, None, logs, every=5)
|
543 |
|
544 |
block.queue().launch(debug=True)#, server_name="0.0.0.0", ssl_verify=False, server_port=7860)
|
545 |
|
|
|
252 |
|
253 |
topics_text, probs = topic_model.fit_transform(docs, embeddings_out)
|
254 |
|
255 |
+
# print(topics_text)
|
256 |
|
257 |
if topics_text.size == 0:
|
258 |
# Handle the empty array case
|
|
|
504 |
reduce_outliers_btn = gr.Button("Reduce outliers")
|
505 |
represent_llm_btn = gr.Button("Generate topic labels with LLMs")
|
506 |
|
507 |
+
#logs = gr.Textbox(label="Processing logs.")
|
508 |
|
509 |
|
510 |
|
|
|
539 |
|
540 |
plot_btn.click(fn=visualise_topics, inputs=[topic_model_state, docs_state, data_file_name_no_ext_state, low_resource_mode_opt, embeddings_state, label_list_state, sample_slide, visualisation_type_radio], outputs=[output_single_text, out_plot_file, plot], api_name="plot")
|
541 |
|
542 |
+
#block.load(read_logs, None, logs, every=5)
|
543 |
|
544 |
block.queue().launch(debug=True)#, server_name="0.0.0.0", ssl_verify=False, server_port=7860)
|
545 |
|