Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -7,7 +7,7 @@ import gradio as gr
|
|
7 |
# Use a pipeline as a high-level helper
|
8 |
from transformers import pipeline
|
9 |
|
10 |
-
|
11 |
model="sshleifer/distilbart-cnn-12-6",
|
12 |
torch_dtype=torch.bfloat16)
|
13 |
|
|
|
7 |
# Use a pipeline as a high-level helper
|
8 |
from transformers import pipeline
|
9 |
|
10 |
+
text_summary = pipeline("summarization",
|
11 |
model="sshleifer/distilbart-cnn-12-6",
|
12 |
torch_dtype=torch.bfloat16)
|
13 |
|