Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -6,7 +6,7 @@ from transformers import pipeline
|
|
| 6 |
# Used the model ID from the Hugging Face Hub
|
| 7 |
text_summary = pipeline("summarization", model="sshleifer/distilbart-cnn-12-6", torch_dtype=torch.bfloat16)
|
| 8 |
|
| 9 |
-
Example text
|
| 10 |
# text = '''Costello's (also known as Tim's) was a bar and restaurant in Midtown Manhattan,
|
| 11 |
# New York City, from 1929 to 1992. The bar operated at several locations near the intersection
|
| 12 |
# of East 44th Street and Third Avenue. Costello's was known as a drinking spot for journalists with the
|
|
|
|
| 6 |
# Used the model ID from the Hugging Face Hub
|
| 7 |
text_summary = pipeline("summarization", model="sshleifer/distilbart-cnn-12-6", torch_dtype=torch.bfloat16)
|
| 8 |
|
| 9 |
+
#Example text
|
| 10 |
# text = '''Costello's (also known as Tim's) was a bar and restaurant in Midtown Manhattan,
|
| 11 |
# New York City, from 1929 to 1992. The bar operated at several locations near the intersection
|
| 12 |
# of East 44th Street and Third Avenue. Costello's was known as a drinking spot for journalists with the
|