MrGanesh commited on
Commit
3a2eb2d
·
1 Parent(s): bf8d1a1
Files changed (1) hide show
  1. app.py +8 -0
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)