joko333's picture
Reintroduce Analysis page with Streamlit setup for text analysis functionality
7fd3f3b
raw
history blame
441 Bytes
import streamlit as st
#import transformers
#from transformers import pipeline
st.title('Text Analysis')
# classifier = pipeline("text-classification", model="distilbert-base-uncased-finetuned-sst-2-english")
# input_text = st.text_area("Enter text to analyze:")
# if st.button('Analyze'):
# if input_text:
# result = classifier(input_text)
# st.write(result)
# else:
# st.warning('Please enter some text')