adarshjha01 commited on
Commit
8393be6
1 Parent(s): 2062dcb

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
  text_summary = pipeline("summarization", model="sshleifer/distilbart-cnn-12-6",
8
- torch_dtype = torch.bfloat16, device=0)
9
 
10
  def summary (input):
11
  output = text_summary(input)
 
5
  from transformers import pipeline
6
 
7
  text_summary = pipeline("summarization", model="sshleifer/distilbart-cnn-12-6",
8
+ torch_dtype = torch.bfloat16)
9
 
10
  def summary (input):
11
  output = text_summary(input)