Sidharthkr commited on
Commit
f5b674b
·
1 Parent(s): cadcae1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -1,6 +1,6 @@
1
  import gradio as gr
2
  from transformers import pipeline
3
- summarizer = pipeline("summarization", model="Sidharthkr/InstructTweetSummarizer", revision= "2f4a74c8b8eb0ad98e6b7c48f8f93c8334068c15")
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)