help request
#3
by
iamsteve
- opened
hi guys i am not really familiar with ai so i just wanted to ask how i will use this model in python to summarize text for me
Bro, it is on the readme.
from transformers import pipeline
summarizer = pipeline("summarization", model="Falconsai/text_summarization")
ARTICLE = """
...
"""
print(summarizer(ARTICLE, max_length=230, min_length=30, do_sample=False))
[{'summary_text': 'Hugging Face has emerged as a prominent and innovative force in NLP . From its inception to its role in democratizing AI, the company has left an indelible mark on the industry . The name "Hugging Face" was chosen to reflect the company's mission of making AI models more accessible and friendly to humans .'}]
Thanks yurisa2
RealFalconsAI
changed discussion status to
closed