Spaces:
Sleeping
Sleeping
File size: 235 Bytes
2ed4404 |
1 2 3 4 5 6 7 8 |
from transformers import pipeline
import streamlit as st
@st.cache_resource
def load_model():
"""Load the sentiment analysis model."""
return pipeline("sentiment-analysis", model="tabularisai/multilingual-sentiment-analysis")
|