Simran-Dalvi commited on
Commit
a80f69f
·
verified ·
1 Parent(s): 7acc636

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -3
app.py CHANGED
@@ -4,9 +4,7 @@ import gradio as gr
4
  # Use a pipeline as a high-level helper
5
  from transformers import pipeline
6
 
7
- text_summary = pipeline("summarization", model="models--sshleifer--distilbart-cnn-12-6",
8
- torch_dtype=torch.bfloat16)
9
-
10
  # model_path ="../Models/models--sshleifer--distilbart-cnn-12-6/snapshots/a4f8f3ea906ed274767e9906dbaede7531d660ff"
11
 
12
  # text_summary = pipeline("summarization", model=model_path,
 
4
  # Use a pipeline as a high-level helper
5
  from transformers import pipeline
6
 
7
+ text_summary = pipeline("summarization", model="sshleifer/distilbart-cnn-12-6")
 
 
8
  # model_path ="../Models/models--sshleifer--distilbart-cnn-12-6/snapshots/a4f8f3ea906ed274767e9906dbaede7531d660ff"
9
 
10
  # text_summary = pipeline("summarization", model=model_path,