Spaces:
Runtime error
Runtime error
File size: 247 Bytes
83b4a34 1ce1c41 83b4a34 1ce1c41 83b4a34 1ce1c41 83b4a34 |
1 2 3 4 5 6 7 8 9 10 11 |
import streamlit as st
from transformers import Automodel
import pickle
from tensorflow.keras.models import load_model
model = load_model('tox_model.pkl')
text = st.text_area('Enter some text')
if text:
out = model.predict(text)
st.json(out) |