import streamlit as st from transformers import pipeline import torch from transformers import AutoTokenizer, AutoModelForSequenceClassification import datetime import streamlit as st #d = st.date_input("Chose the Date for which you are interested in", value=None) #st.write('You selected:', d) tokenizer = AutoTokenizer.from_pretrained("nickmuchi/sec-bert-finetuned-finance-classification") model = AutoModelForSequenceClassification.from_pretrained("nickmuchi/sec-bert-finetuned-finance-classification") pipe = pipeline("text-classification", model=model, tokenizer=tokenizer, device=device) text = st.text_area("Enter some text") if text: out = pipe(text) st.json(out)