Spaces:
Sleeping
Sleeping
Update app.py
Browse files7 unmodified lines8910111213147 unmodified lines# Use a pipeline as a high-level helperfrom transformers import pipelinepipe = pipeline("summarization", model="sshleifer/distilbart-xsum-1-1", torch_dtype=torch.bfloat16)# model_path=("../Models/models--sshleifer--distilbart-xsum-1-1/snapshots/891968fcbb0e421075cc2c3dfc8da8d4b24d54a4")# text_summary = pipeline("summarization", model=model_path,7 unmodified lines8910111213147 unmodified lines# Use a pipeline as a high-level helperfrom transformers import pipelinetext_summary = pipeline("summarization", model="sshleifer/distilbart-xsum-1-1", torch_dtype=torch.bfloat16)# model_path=("../Models/models--sshleifer--distilbart-xsum-1-1/snapshots/891968fcbb0e421075cc2c3dfc8da8d4b24d54a4")# text_summary = pipeline("summarization", model=model_path,
app.py+1-1