code: def model2(text):
      generated_list = generator2(
          text, do_sample=True, min_length=20, max_length=100
      )
      generated = generated_list[0]["generated_text"]
      return generated
  
imports: import gradio
  from transformers import pipeline
  import requests
label_desc: Use image node_id 2 for calling a global function with example usage: model2(text) and returns: generated