UNIST-Eunchan
commited on
Commit
•
2ec6cef
1
Parent(s):
7ad5931
Update app.py
Browse files
app.py
CHANGED
@@ -2,9 +2,9 @@ import gradio as gr
|
|
2 |
import torch
|
3 |
from transformers import pipeline
|
4 |
|
5 |
-
summarizer_pipeline = pipeline("summarization", model="UNIST-Eunchan/Paper-Summarization-ArXiv")
|
6 |
|
7 |
def summarize(doc):
|
|
|
8 |
|
9 |
doc = r"{doc}".replace('\n', ' ')
|
10 |
result = summarizer_pipeline(doc)
|
|
|
2 |
import torch
|
3 |
from transformers import pipeline
|
4 |
|
|
|
5 |
|
6 |
def summarize(doc):
|
7 |
+
summarizer_pipeline = pipeline("summarization", model="UNIST-Eunchan/Paper-Summarization-ArXiv")
|
8 |
|
9 |
doc = r"{doc}".replace('\n', ' ')
|
10 |
result = summarizer_pipeline(doc)
|