JasonTPhillipsJr commited on
Commit
e72b522
1 Parent(s): 1091141

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -1
app.py CHANGED
@@ -87,9 +87,16 @@ selected_review = example_reviews[user_input]
87
  # Process the text when the button is clicked
88
  if st.button("Highlight Geo-Entities"):
89
  if selected_review.strip():
 
 
 
 
 
 
 
90
  # Process the text using spaCy
91
  doc = nlp(selected_review)
92
-
93
  # Highlight geo-entities with different colors
94
  highlighted_text = selected_review
95
  for ent in reversed(doc.ents):
 
87
  # Process the text when the button is clicked
88
  if st.button("Highlight Geo-Entities"):
89
  if selected_review.strip():
90
+ bert_embedding = get_bert_embedding(selected_review)
91
+ # Debug: Print the shape of the embeddings
92
+ st.write("Embedding Shape:", bert_embedding.shape)
93
+
94
+ # Debug: Print the embeddings themselves (optional)
95
+ st.write("Embeddings:", bert_embedding)
96
+
97
  # Process the text using spaCy
98
  doc = nlp(selected_review)
99
+
100
  # Highlight geo-entities with different colors
101
  highlighted_text = selected_review
102
  for ent in reversed(doc.ents):