File size: 450 Bytes
3253f49
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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)