File size: 1,034 Bytes
8449e2f
 
01ef47d
8449e2f
01ef47d
 
 
 
 
 
 
 
 
 
05ab1ec
01ef47d
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
import gradio as gr

from web_scraper import minutes_scraper, minutes_scraper_no_sum

with gr.Blocks() as app:
    gr.Markdown("Get the meeting minutes from a URL")
    with gr.Tab("Without Summary"):
        text_input = gr.Textbox()
        text_output = gr.JSON()
        text_button = gr.Button("Scrape")
    with gr.Tab("With Summary (Slower)"):
        text_input = gr.Textbox()
        text_output = gr.JSON()
        text_button = gr.Button("Scrape & Summarize")

        with gr.Accordion("Note on Summary"):
            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.")



    text_button.click(minutes_scraper, inputs=text_input, outputs=text_output)
    image_button.click(minutes_scraper_no_sum(), inputs=image_input, outputs=image_output)

app.launch()