Spaces:
Build error
Build error
Commit ·
c83fc2f
1
Parent(s): 5be6f31
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="Sidharthkr/InstructTweetSummarizer")
|
| 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="Sidharthkr/InstructTweetSummarizer", revision= "2f4a74c8b8eb0ad98e6b7c48f8f93c8334068c15")
|
| 4 |
def summarymaker(instruction = "", tweets = ""):
|
| 5 |
ARTICLE = f"""[INST] {instruction} [/INST] \\n [TWEETS] {tweets} [/TWEETS]"""
|
| 6 |
print(ARTICLE)
|