Spaces:
Runtime error
Runtime error
Trent
commited on
Commit
•
f18ec1c
1
Parent(s):
2222619
Local demo link
Browse files
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
|
129 |
-
|
130 |
-
|
|
|
|
|
|
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()
|