INNER CODE UNIT · Python
generate_model
gagan3012/keytotext · UI/app_base.py:16
def generate_model(model="k2t"):
nlp = pipeline(model)
return nlp
def display():
st.write('# Keytotext UI')
st.markdown(
'''
*For additional questions and inquiries, please contact **Gagan Bhatia** via [LinkedIn](
https://www.linkedin.com/in/gbhatia30/) or [Github](https://github.com/gagan3012).*
''')
mt = st.slider(label="Number of Keywords you would like to enter:",
min_value=1,
max_value=10,
value=3,
step=1)