Spaces:
Sleeping
Sleeping
Create app.py
Browse files
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)
|