Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -2,7 +2,7 @@ from transformers import pipeline
|
|
2 |
import gradio as gr
|
3 |
|
4 |
# Load the summarizer model
|
5 |
-
summarizer = pipeline("summarization", model="
|
6 |
|
7 |
# Define the function for Gradio to use
|
8 |
def summarize_article(text):
|
|
|
2 |
import gradio as gr
|
3 |
|
4 |
# Load the summarizer model
|
5 |
+
summarizer = pipeline("summarization", model="sshleifer/distilbart-cnn-6-6")
|
6 |
|
7 |
# Define the function for Gradio to use
|
8 |
def summarize_article(text):
|