Spaces:
Runtime error
Runtime error
Commit ·
474b498
1
Parent(s): 41fdda1
Update app.py
Browse files11 unmodified lines121314151617181920212211 unmodified lines# Streamlit appst.title("Keyword Extraction with KeyBERT")text = st.text_area("Enter your text here:", value='', height=200)num_keywords = st.slider("Number of keywords:", min_value=1, max_value=10, value=5, step=1)if st.button("Extract Keywords"):if text:keywords = get_bert_keywords(text, num_keywords)st.write("Keywords:")st.write(", ".join(keywords))else:11 unmodified lines1213141516171819202111 unmodified lines# Streamlit appst.title("Keyword Extraction with KeyBERT")text = st.text_area("Enter your text here:", value='', height=200)if st.button("Extract Keywords"):if text:keywords = get_bert_keywords(text, 5)st.write("Keywords:")st.write(", ".join(keywords))else:
app.py+1-2