Team Ai
Apppublic

AfaqJamshaid/Text_classification

sourceHugging Faceupdated 3y agoView on Hugging Face
0likes
app.py12 linesDownload Raw Back to root
1import streamlit as st2from inference import predict3 4st.title("Your Model Interface")5 6# Input text box7text = st.text_area("Enter text for prediction", "")8 9if st.button("Predict"):10    prediction = predict(text)11    st.success(f"Predicted Label: {prediction}")12