Spaces:
Running
Running
adarshjha01
commited on
Commit
•
8393be6
1
Parent(s):
2062dcb
Update app.py
Browse files
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
|
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)
|