Update app.py
Browse files2 unmodified lines3456789101112132 unmodified linesimport torchimport gradio as gr# pipe = pipeline("summarization", model="sshleifer/distilbart-cnn-12-6", torch_dtype=torch.bfloat16)model_path = "Model/models--sshleifer--distilbart-cnn-12-6/snapshots/a4f8f3ea906ed274767e9906dbaede7531d660ff"text_summary = pipeline("summarization", model=model_path, torch_dtype=torch.bfloat16)# text="Why You Can Trust Forbes Advisor Small Business \# The Forbes Advisor Small Business team is committed to bringing you unbiased \2 unmodified lines3456789101112132 unmodified linesimport torchimport gradio as grtext_summary = pipeline("summarization", model="sshleifer/distilbart-cnn-12-6", torch_dtype=torch.bfloat16)# model_path = "Model/models--sshleifer--distilbart-cnn-12-6/snapshots/a4f8f3ea906ed274767e9906dbaede7531d660ff"# text_summary = pipeline("summarization", model=model_path, torch_dtype=torch.bfloat16)# text="Why You Can Trust Forbes Advisor Small Business \# The Forbes Advisor Small Business team is committed to bringing you unbiased \
app.py+3-3