Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -267,7 +267,7 @@ with iface:
|
|
| 267 |
# text_input.change(classify_text, inputs=text_input, outputs=result_output)
|
| 268 |
|
| 269 |
starttextprocessing_button = gr.Button("Start text processing")
|
| 270 |
-
|
| 271 |
|
| 272 |
gr.Markdown("## Option 2: Upload multiple files for batch classification")
|
| 273 |
file_input = gr.File(label="Upload PDF or Text Files", file_types=[".pdf", ".txt", ".py", ".ipynb"], file_count="multiple")
|
|
@@ -276,7 +276,7 @@ with iface:
|
|
| 276 |
# file_input.change(fn=batch_classify, inputs=file_input, outputs=result_table)
|
| 277 |
|
| 278 |
startbatchprocessing_button = gr.Button("Start batch processing")
|
| 279 |
-
|
| 280 |
|
| 281 |
gr.Markdown(bottom_text, elem_id="bottom_text")
|
| 282 |
|
|
|
|
| 267 |
# text_input.change(classify_text, inputs=text_input, outputs=result_output)
|
| 268 |
|
| 269 |
starttextprocessing_button = gr.Button("Start text processing")
|
| 270 |
+
starttextprocessing_button.click(fn=batch_classify, inputs=file_input, outputs=result_table)
|
| 271 |
|
| 272 |
gr.Markdown("## Option 2: Upload multiple files for batch classification")
|
| 273 |
file_input = gr.File(label="Upload PDF or Text Files", file_types=[".pdf", ".txt", ".py", ".ipynb"], file_count="multiple")
|
|
|
|
| 276 |
# file_input.change(fn=batch_classify, inputs=file_input, outputs=result_table)
|
| 277 |
|
| 278 |
startbatchprocessing_button = gr.Button("Start batch processing")
|
| 279 |
+
startbatchprocessing_button.click(fn=batch_classify, inputs=file_input, outputs=result_table)
|
| 280 |
|
| 281 |
gr.Markdown(bottom_text, elem_id="bottom_text")
|
| 282 |
|