basharat8763 commited on
Commit
d2e84f1
·
verified ·
1 Parent(s): 9cb31ff

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -5,7 +5,7 @@ import gradio as gr
5
  from transformers import pipeline
6
 
7
  # downloaded the model from web
8
- pipe = pipeline("summarization", model="sshleifer/distilbart-cnn-12-6",
9
  torch_dtype=torch.bfloat16)
10
 
11
  def summary(input):
 
5
  from transformers import pipeline
6
 
7
  # downloaded the model from web
8
+ text_summary = pipeline("summarization", model="sshleifer/distilbart-cnn-12-6",
9
  torch_dtype=torch.bfloat16)
10
 
11
  def summary(input):