def long_text_summarization(text, model_id="facebook/bart-large-cnn"):
    """
    Main function that performs summarization using a specified model and returns the summary.

    Args:
        text (str): The text to summarize.
        model_id (str): The ID of the summarization model to use.

    Returns:
        summary (str): The summary of the text.
    """
    summarizer = LongTextSummarizationPipeline(model_id=model_id)
    summary_text = summarizer.summarize(text)

    return summary_text

    Main function that performs summarization using a specified model and returns the summary.

    Args:
        text (str): The text to summarize.
        model_id (str): The ID of the summarization model to use.

    Returns:
        summary (str): The summary of the text.
    
whisperplus/app.py