code: def gradio_summarizer_builder():
      summarizer = pipeline("summarization", model="t5-small")
  
      def model(text):
          summary_list = summarizer(text)
          summary = summary_list[0]["summary_text"]
          return summary
  
      return gr.Interface(
          fn=model,
          inputs=[
              gr.Textbox(value=example_input, label="Input prompt")
          ],
          outputs=[gr.Textbox(label="Model output")],
      )
  
imports: import requests
  from ray import serve
  from ray.serve.gradio_integrations import GradioServer
  import gradio
  from transformers import pipeline
label_desc: Use image node_id 1 for calling a global function with example usage: gradio_summarizer_builder() and returns: gr, summary