songhai2022 commited on
Commit
e89867e
·
1 Parent(s): a226bb9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -7
app.py CHANGED
@@ -13,10 +13,10 @@ def get_bert_keywords(text, num_keywords):
13
  st.title("Keyword Extraction with KeyBERT")
14
  text = st.text_area("Enter your text here:", value='', height=200)
15
 
16
- if st.button("Extract Keywords"):
17
- if text:
18
- keywords = get_bert_keywords(text, 5)
19
- st.write("Keywords:")
20
- st.write(", ".join(keywords))
21
- else:
22
- st.error("Please enter some text.")
 
13
  st.title("Keyword Extraction with KeyBERT")
14
  text = st.text_area("Enter your text here:", value='', height=200)
15
 
16
+ # if st.button("Extract Keywords"):
17
+ # if text:
18
+ # keywords = get_bert_keywords(text, 5)
19
+ # st.write("Keywords:")
20
+ # st.write(", ".join(keywords))
21
+ # else:
22
+ # st.error("Please enter some text.")