GPT-X-LSTM-V0-Terminal / D.A.N V3.app
TeamHaltmannSusanaHWCEO's picture
Create D.A.N V3.app
3253f49
import streamlit as st
import gpt_neox
st.title('GPT-NeoX Streamlit App')
model = gpt_neox.GPTNeoX(model_name='D.A.N Rev III O.R.CA Edition')
@st.cache
def get_prediction(input_text):
return model.predict(input_text)
st.write('Enter your input text below to get a prediction from the GPT-NeoX model:')
user_input = st.text_input('Input Text')
if user_input:
prediction = get_prediction(user_input)
st.write('Prediction:', prediction)