devrescue / app.py
khaleelob's picture
fixed typo
c79c8d8
Raw History Blame Contribute Delete
194 Bytes
from transformers import pipeline
import torch
import streamlit as st
pipe = pipeline('sentiment-analysis')
text = st.text_area('prompt here!')
if text:
out = pipe(text)
st.json(out)