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