File size: 343 Bytes
c4aa455
e7d2b25
4b141dc
 
c4aa455
dc15246
c4aa455
 
e7d2b25
 
 
eb3fa72
1
2
3
4
5
6
7
8
9
10
11
12
13
import streamlit as st
from utils.prediction import load_model_for_prediction
#import transformers
#from transformers import pipeline

st.title('My first app')
x = st.slider('Select a value')
st.write(x, 'squared is', x * x)
# load the model and cache it
model, label_encoder, tokenizer = load_model_for_prediction()
st.write('Model loaded')