JasonTPhillipsJr commited on
Commit
6de8acf
·
verified ·
1 Parent(s): 0ae4eba

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -259,13 +259,12 @@ user_selection = st.selectbox("Select an example review", options=dropdown_optio
259
  selected_key = user_selection.split(" (")[0] # Remove the label part
260
  selected_review = example_reviews[selected_key]
261
  lower_case_review = selected_review.lower()
262
- st.write("Lower case:", lower_case_review)
263
 
264
  # Process the text when the button is clicked
265
  if st.button("Process Review"):
266
  if lower_case_review.strip():
267
  bert_embedding = get_bert_embedding(lower_case_review)
268
- spaBert_embedding, current_pseudo_sentences = processSpatialEntities(lower_case_review,nlp)
269
  combined_embedding = torch.cat((bert_embedding,spaBert_embedding),dim=-1)
270
 
271
  if(dev_mode == True):
 
259
  selected_key = user_selection.split(" (")[0] # Remove the label part
260
  selected_review = example_reviews[selected_key]
261
  lower_case_review = selected_review.lower()
 
262
 
263
  # Process the text when the button is clicked
264
  if st.button("Process Review"):
265
  if lower_case_review.strip():
266
  bert_embedding = get_bert_embedding(lower_case_review)
267
+ spaBert_embedding, current_pseudo_sentences = processSpatialEntities(selected_review,nlp)
268
  combined_embedding = torch.cat((bert_embedding,spaBert_embedding),dim=-1)
269
 
270
  if(dev_mode == True):