# >>>>>> Adapted/frankensteined from these scripts: <<<<<<< # for Summary Interface: # >>>>https://huggingface.co/spaces/khxu/pegasus-text-summarizers/blob/main/app.py # import gradio as gr from transformers import pipeline from gradio.mix import Parallel, Series def greet(name): return "Hello " + name + "!!" # iface = gr.Interface(fn=greet, inputs="text", outputs="text") io1 = gr.Interface.load('huggingface/SamuelMiller/lil_sum_sum') # 'huggingface/google/pegasus-large' desc = "Summarize some text!" iface = Parallel(io1, theme='huggingface', title= 'lil sum sum Summarizer', description = desc, # examples=None, #replace "sample" with directory to let gradio scan through those files and give you the text inputs = gr.inputs.Textbox(lines = 10, label="Text")) iface.launch(inline = False)