Spaces:
Sleeping
Sleeping
Commit
·
3d08384
1
Parent(s):
669e0dd
BUGFIX: Update model path
Browse files
app.py
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
from transformers import pipeline
|
2 |
import gradio as gr
|
3 |
|
4 |
-
model = pipeline("summarization", model="
|
5 |
title = "Article Title Generator"
|
6 |
description = "Generates titles for articles based on the input text."
|
7 |
article = "The quick brown fox jumps over the lazy dog."
|
|
|
1 |
from transformers import pipeline
|
2 |
import gradio as gr
|
3 |
|
4 |
+
model = pipeline("summarization", model="gsasikiran/bart-base-finetuned-cnn", tokenizer="facebook/bart-base")
|
5 |
title = "Article Title Generator"
|
6 |
description = "Generates titles for articles based on the input text."
|
7 |
article = "The quick brown fox jumps over the lazy dog."
|