import gradio as gr examples = [ [" Lee: Hi guys, have you heard of our great professor, Zeanique Barber? \n William: Yes, I was excited that she became our instructor for UMBC's DATA606 Capstone for Data Science in Fall 2022! \n Lee: Indeed, she has amazing experience in Data Transformation for organizations and I'm excited to learn from her! \n William: I know, I too have experience in Data Transformation in cloud technology ;) \n Lee: Cool, maybe we should do a project about cloud data? What do you think? \n William: Great idea, how hard can it be?! \n William: I am in! \n Lee: Awesome, let's do it together! "], ["Karen: What do I owe the excessive volume of this giggling?\nPlankton: [chuckles] You may thank my new and original idea, darling. Free samples!\nKaren: New and original, my exhaust fan.\nPlankton: Okay, so I didn't invent the concept, but I have improved upon it by removing the only obstacle to chum's success!\nKaren: You mean the smell? Smell.\nPlankton: No. I mean getting the public to try some! Once everyone gets a taste of my delicious chum, they'll tear this place apart to get some. Plus it's free, and who can resist free?!Step right up for your free samples of delicious chum!\nNat: Hey, what did he just say it was?\nPlankton: I just said they're free!\nNat: Oh... I thought he said freaks. In that case... So glad I actually left my house today.\nPlankton: That's the spirit, people. Step on up, but please take your time and be orderly. I wanna savor this whole 'Putting-Krabs-out-of-business' business.\nSally: What is it?\nShubie: Oh, who cares silly-big-milly? It's free!\nSally: Oh, it's going to be so good 'cause it's free!\nPlankton: Eat up. Ugh. I have no idea that chum was this rotten. I better not be here when all this agony turns to anger.\nNat: Hey, he's making a run for it! We can't let him get away with this! Let's get up and... get him."] ] gr.Interface.load( "huggingface/Lwhieldon/pegasus-samsum", inputs=gr.Textbox(label="Input"), outputs=gr.Textbox(label="Output"), title="UMBC Fall 2022 DATA606 Capstone: Abstract Transcript Text Summarization Demo", examples=examples ).launch()