bastiango97 commited on
Commit
75bdb14
1 Parent(s): 69bc313

Create app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -0
app.py ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ import streamlit as st
2
+ from transformers import pipeline
3
+
4
+ pipe = pipeline("text2text-generation", model="bastiango97/resumen_articulos_CNN")
5
+
6
+ text = st.text_area('Enter the article and I will summirize it for you:')
7
+
8
+ if text:
9
+ out = pipe(text)
10
+ st.text(out)