Spaces:
Sleeping
Sleeping
Commit
·
d841ec8
1
Parent(s):
4c96fd8
update naming
Browse files
app.py
CHANGED
@@ -269,13 +269,6 @@ Each segment is represented as a vector of these TF-IDF scores, and the cosine s
|
|
269 |
# For now, this modification focuses on creating the plot object and making it an output.
|
270 |
# The visual placement depends on how Gradio renders children of gr.Tab or if there's another container.
|
271 |
|
272 |
-
# Wire up the chapter renaming UI
|
273 |
-
file_input.upload(
|
274 |
-
setup_chapter_rename_ui,
|
275 |
-
inputs=[file_input],
|
276 |
-
outputs=[chapter_rename_group, chapter_names_ui, file_data_state]
|
277 |
-
)
|
278 |
-
|
279 |
warning_box = gr.Markdown(visible=False)
|
280 |
|
281 |
# State to hold file info and chapter names
|
@@ -307,6 +300,13 @@ Each segment is represented as a vector of these TF-IDF scores, and the cosine s
|
|
307 |
|
308 |
return gr.update(visible=True), chapter_name_inputs, file_data
|
309 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
310 |
def run_pipeline(files, enable_semantic, model_name, stopwords_option, batch_size, show_progress, chapter_names_list, progress=gr.Progress()):
|
311 |
"""Run the text analysis pipeline on the uploaded files.
|
312 |
|
|
|
269 |
# For now, this modification focuses on creating the plot object and making it an output.
|
270 |
# The visual placement depends on how Gradio renders children of gr.Tab or if there's another container.
|
271 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
272 |
warning_box = gr.Markdown(visible=False)
|
273 |
|
274 |
# State to hold file info and chapter names
|
|
|
300 |
|
301 |
return gr.update(visible=True), chapter_name_inputs, file_data
|
302 |
|
303 |
+
# Wire up the chapter renaming UI
|
304 |
+
file_input.upload(
|
305 |
+
setup_chapter_rename_ui,
|
306 |
+
inputs=[file_input],
|
307 |
+
outputs=[chapter_rename_group, chapter_names_ui, file_data_state]
|
308 |
+
)
|
309 |
+
|
310 |
def run_pipeline(files, enable_semantic, model_name, stopwords_option, batch_size, show_progress, chapter_names_list, progress=gr.Progress()):
|
311 |
"""Run the text analysis pipeline on the uploaded files.
|
312 |
|