import streamlit as st from back import load_setup, predict st.markdown("""# Hi, let's find some arxiv tags of papers! """, unsafe_allow_html=True) title = st.text_area("$\LARGE \\text{Title of the paper:}$", placeholder='') abstract = st.text_area("$\LARGE \\text{Abstract of the paper(if any):}$", placeholder='') if st.button('Generate tags!'): if title == '': st.write('# Please, enter title!') else: text = title + '[SEP]' + abstract model, tokenizer = load_setup(path_to_model=, path_to_vocab=) prediction = predict(model, tokenizer, text) st.markdown(f'## Predicted tag(s): {prediction}') else: pass