Trent commited on
Commit
f18ec1c
1 Parent(s): 2222619

Local demo link

Browse files
Files changed (1) hide show
  1. app.py +5 -3
app.py CHANGED
@@ -125,6 +125,8 @@ For more cool information on sentence embeddings, see the [sBert project](https:
125
  results = {model: inference.text_search(anchor, n_texts, model, QA_MODELS_ID) for model in select_models}
126
  st.table(pd.DataFrame(results[select_models[0]]).T)
127
 
128
- if st.button('3D Clustering of search result (new window)'):
129
- fig = inference.text_cluster(anchor, 1000, select_models[0], QA_MODELS_ID)
130
- fig.show()
 
 
 
125
  results = {model: inference.text_search(anchor, n_texts, model, QA_MODELS_ID) for model in select_models}
126
  st.table(pd.DataFrame(results[select_models[0]]).T)
127
 
128
+ if st.button('3D Clustering of search result using T-SNE on generated embeddings'):
129
+ st.write("Currently only works at local due to Spaces / plotly integration.")
130
+ st.write("Demonstration : https://gyazo.com/1ff0aa438ae533de3b3c63382af7fe80")
131
+ # fig = inference.text_cluster(anchor, 1000, select_models[0], QA_MODELS_ID)
132
+ # fig.show()