Suhaib-27 commited on
Commit
6bf15d6
·
verified ·
1 Parent(s): 55a8c07

Create app.py

Browse files
Files changed (1) hide show
  1. app.py +13 -0
app.py ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import streamlit as st
2
+ from transformers import pipeline
3
+ from datasets import load_dataset
4
+
5
+ huggingface_dataset_name = "Samsung/samsum"
6
+ dataset = load_dataset(huggingface_dataset_name)
7
+
8
+ # get the topic
9
+ topic = st.text_area("Enter text to be summarized")
10
+
11
+ if topic:
12
+ summarizer = pipeline("summarization", model = "Suhaib-27/check")
13
+ st.write(summarizer)