|
import streamlit as st |
|
from transformers import pipeline |
|
from PIL import Image |
|
|
|
model_path = "abhisheky127/FeedbackSummarizerEnterpret" |
|
|
|
summarizer = pipeline("summarization", model=model_path) |
|
|
|
st.title("Feedback Summarizer: Enterpret") |
|
st.markdown( |
|
""" |
|
#### Summarize reviews/feedbacks with fine-tuned T5-small language Model |
|
> *powered by Hugging Face T5, Streamlit* |
|
---- |
|
""" |
|
) |
|
|
|
text = "<product>zoom</product><type>Appstore/Playstore</type><text>user: this is very successful meeting business</text>" |
|
pred = summarizer(text) |
|
st.write(pred) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|