Yah216's picture
Update app.py
ba56307
raw
history blame
No virus
310 Bytes
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"])