AmitT commited on
Commit
b955174
1 Parent(s): 7c8da9b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -56,7 +56,7 @@ find_button = st.button("Submit")
56
  model = load_similarity_model(selected_model_name)
57
 
58
  # callback
59
- with st.spinner("EmojiFinder is looking for clues to find the best emoji...."):
60
  if find_button:
61
  # fidn the top N similar sentences
62
  top_indices = find_similar_sentences(query_text, emoji_df['name'], emoji_count)
@@ -64,7 +64,8 @@ with st.spinner("EmojiFinder is looking for clues to find the best emoji...."):
64
  for i in top_indices:
65
  emoji = emoji_df.iloc[i]
66
  # prep the text
67
- text = f'{emoji["name"]} - '
 
68
  # add all of the codepoints
69
  text += ' '.join([encode_emoji(x) for x in emoji['codepoints'].split(' ')])
70
  st.write(text)
 
56
  model = load_similarity_model(selected_model_name)
57
 
58
  # callback
59
+ with st.spinner("Searching..."):
60
  if find_button:
61
  # fidn the top N similar sentences
62
  top_indices = find_similar_sentences(query_text, emoji_df['name'], emoji_count)
 
64
  for i in top_indices:
65
  emoji = emoji_df.iloc[i]
66
  # prep the text
67
+ #text = f'{emoji["name"]} - '
68
+ text = ''
69
  # add all of the codepoints
70
  text += ' '.join([encode_emoji(x) for x in emoji['codepoints'].split(' ')])
71
  st.write(text)