Spaces:
Build error
Build error
Commit
·
f5b674b
1
Parent(s):
cadcae1
Update app.py
Browse files
app.py
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
import gradio as gr
|
2 |
from transformers import pipeline
|
3 |
-
summarizer = pipeline("summarization", model="
|
4 |
def summarymaker(instruction = "", tweets = ""):
|
5 |
ARTICLE = f"""[INST] {instruction} [/INST] \\n [TWEETS] {tweets} [/TWEETS]"""
|
6 |
print(ARTICLE)
|
|
|
1 |
import gradio as gr
|
2 |
from transformers import pipeline
|
3 |
+
summarizer = pipeline("summarization", model="facebook/bart-large-cnn")
|
4 |
def summarymaker(instruction = "", tweets = ""):
|
5 |
ARTICLE = f"""[INST] {instruction} [/INST] \\n [TWEETS] {tweets} [/TWEETS]"""
|
6 |
print(ARTICLE)
|