Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,5 +1,5 @@
|
|
| 1 |
from transformers import pipeline
|
| 2 |
-
|
| 3 |
# Function to summarize text using Hugging Face Transformers
|
| 4 |
def summarize_text(text, model_name="facebook/bart-large-cnn"):
|
| 5 |
summarizer = pipeline("summarization", model=model_name)
|
|
|
|
| 1 |
from transformers import pipeline
|
| 2 |
+
import streamlit as st
|
| 3 |
# Function to summarize text using Hugging Face Transformers
|
| 4 |
def summarize_text(text, model_name="facebook/bart-large-cnn"):
|
| 5 |
summarizer = pipeline("summarization", model=model_name)
|