File size: 601 Bytes
741ea16
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
import streamlit as st
from transformers import pipeline

# Load your model
model = pipeline("text-classification", model="KevSun/Personality_LM")

st.title("Personality Prediction App")

st.write("Enter your text below to predict personality traits:")

user_input = st.text_area("Your text here:")

if st.button("Predict"):
    if user_input:
        # Process the input and get predictions
        result = model(user_input)
        
        # Display results
        st.write("Predicted personality traits:")
        st.write(result)
    else:
        st.write("Please enter some text to analyze.")