Spaces:
Runtime error
Runtime error
noelfranthomas
commited on
Commit
•
d343ab9
1
Parent(s):
01ef47d
ww
Browse files
app.py
CHANGED
@@ -11,7 +11,7 @@ with gr.Blocks() as app:
|
|
11 |
with gr.Tab("With Summary (Slower)"):
|
12 |
text_input = gr.Textbox()
|
13 |
text_output = gr.JSON()
|
14 |
-
|
15 |
|
16 |
with gr.Accordion("Note on Summary"):
|
17 |
gr.Markdown("The summary is generated using the [Facebook BART model](https://huggingface.co/facebook/bart-large-cnn). The summary is not perfect, but it is a good starting point for a quick overview of the meeting. Please bear in mind that this process may take longer depending on the amount of text to summarize.")
|
@@ -19,6 +19,6 @@ with gr.Blocks() as app:
|
|
19 |
|
20 |
|
21 |
text_button.click(minutes_scraper, inputs=text_input, outputs=text_output)
|
22 |
-
|
23 |
|
24 |
app.launch()
|
|
|
11 |
with gr.Tab("With Summary (Slower)"):
|
12 |
text_input = gr.Textbox()
|
13 |
text_output = gr.JSON()
|
14 |
+
text_button_sum = gr.Button("Scrape & Summarize")
|
15 |
|
16 |
with gr.Accordion("Note on Summary"):
|
17 |
gr.Markdown("The summary is generated using the [Facebook BART model](https://huggingface.co/facebook/bart-large-cnn). The summary is not perfect, but it is a good starting point for a quick overview of the meeting. Please bear in mind that this process may take longer depending on the amount of text to summarize.")
|
|
|
19 |
|
20 |
|
21 |
text_button.click(minutes_scraper, inputs=text_input, outputs=text_output)
|
22 |
+
text_button_sum.click(minutes_scraper_no_sum(), inputs=image_input, outputs=image_output)
|
23 |
|
24 |
app.launch()
|