import gradio as gr from gradio import inputs description = "Dialogue Summarization " interface = gr.Interface.load( "huggingface/anegi/t5smallmodel", title = 'Dialogue Summarization', inputs = [ gr.inputs.Textbox(lines = 7, label = 'Add Text', placeholder = 'Enter your dialogue text here... ') ], outputs = [ gr.outputs.Textbox(type = 'auto',label = 'Summary Generated') ], description = description, examples = [['''A: It is a great weather today. B: Yes, it is sunny and bright. A: Wanna play football? B: Sure, call C as well.''']] ) interface.launch()