Spaces:
Sleeping
Sleeping
JasonTPhillipsJr
commited on
Update app.py
Browse files
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(
|
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):
|