Does transformers work for mobile apps?

Basic question.

Does transformers work for mobile apps (Android, iOS)?

If I implement this in py file:

from transformers import pipeline
    summarizer = pipeline("summarization", model="t5-base")
    summary_text = summarizer(text, max_length=28, min_length=5, do_sample=False)[0]['summary_text']

Will this run? Or is there a special library I need to use for mobile phones?