demo-app / app.py
rajaramesh's picture
Update app.py
d461195 verified
raw
history blame contribute delete
363 Bytes
import streamlit as st
# from transformers import pipeline
# import os
# os.environ["TRANSFORMERS_CACHE"] = "/tmp/huggingface"
# pipe = pipeline("sentiment-analysis", device=-1) # Forces CPU
# pipe = pipeline("sentiment-analysis")
text=st.text_area("enter something")
if text:
# out=pipe(text)
# st.json(out)
st.write(f"You have entered {text}")