code: def build_model(self):
      sample_rate = 48000
      model, _ = torch.hub.load(
          "snakers4/silero-models", model="silero_tts", speaker="v3_en"
      )
      return (
          partial(
              model.apply_tts, sample_rate=sample_rate, speaker="en_0"
          ),
          sample_rate,
      )
  
file_path: pytorch-lightning/docs/source-app/levels/basic/hello_components/streamlit_demo.py
imports: from lightning.app import LightningApp
  import torch
  from io import BytesIO
  from functools import partial
  from scipy.io.wavfile import write
  import streamlit
label_desc: Use image node_id 1 for calling the StreamlitApp obj's underlying member method code with example usage: obj.build_model() and returns: partial,  sample_rate