import gradio as gr from Text_Summarization import summarize gr.close_all() demo = gr.Interface(fn=summarize, inputs='text', outputs='text') demo.launch()