Spaces:
Runtime error
Runtime error
File size: 310 Bytes
f91fdba d67547a 0861c0d f91fdba 01fcc4c f91fdba ba56307 |
1 2 3 4 5 6 7 8 9 10 11 12 |
import streamlit as st
import tensorflow as tf
from transformers import pipeline
model_ckpt = "Yah216/Sentiment_Analysis_CAMelBERT_msa_sixteenth_HARD"
pipe = pipeline("text-classification", model_ckpt)
text = st.text_area("Enter some text in arabic language!")
if text:
st.write(pipe(text)[0]["label"]) |