Spaces:
Runtime error
Runtime error
init!
Browse files
app.py
ADDED
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import streamlit as st
|
2 |
+
from transformers import pipeline
|
3 |
+
summarizer = pipeline("summarization", model="google/bigbird-pegasus-large-bigpatent")
|
4 |
+
text=st.text_area('Enter Patent Text')
|
5 |
+
|
6 |
+
if text:
|
7 |
+
out=summarizer(text,min_length=150, max_length=500)
|
8 |
+
st.json(out)
|