Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -5,7 +5,7 @@ import gradio as gr
|
|
5 |
from transformers import pipeline
|
6 |
|
7 |
# downloaded the model from web
|
8 |
-
|
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):
|