Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -13,19 +13,19 @@ st.markdown('''
|
|
13 |
|
14 |
Hi! This is the demo for the [flax sentence embeddings](https://huggingface.co/flax-sentence-embeddings) created for the **Flax/JAX community week 🤗**.
|
15 |
We trained three general-purpose flax-sentence-embeddings models: a **distilroberta base**, a **mpnet base** and a **minilm-l6**.
|
16 |
-
All were trained on all the datasets of the 1B+ train corpus with the v3 setup.
|
17 |
|
18 |
-
In addition, we trained 20 models focused on general-purpose, QuestionAnswering and Code search.
|
19 |
-
View our models here
|
20 |
|
21 |
-
To evaluate the [flax-sentence-embeddings](https://huggingface.co/flax-sentence-embeddings)
|
22 |
|
23 |
''')
|
24 |
|
25 |
if menu == "Sentence Similarity":
|
26 |
st.header('Sentence Similarity')
|
27 |
st.markdown('''
|
28 |
-
**Instructions**: You can compare the similarity of
|
29 |
|
30 |
For more cool information on sentence embeddings, see the [sBert project](https://www.sbert.net/examples/applications/computing-embeddings/README.html).
|
31 |
''')
|
|
|
13 |
|
14 |
Hi! This is the demo for the [flax sentence embeddings](https://huggingface.co/flax-sentence-embeddings) created for the **Flax/JAX community week 🤗**.
|
15 |
We trained three general-purpose flax-sentence-embeddings models: a **distilroberta base**, a **mpnet base** and a **minilm-l6**.
|
16 |
+
All were trained on all the datasets of the [1B+ train corpus](https://huggingface.co/flax-sentence-embeddings/all_datasets_v4_MiniLM-L6#training-data) with the v3 setup.
|
17 |
|
18 |
+
In addition, we trained [20 models](https://huggingface.co/flax-sentence-embeddings) focused on general-purpose, QuestionAnswering and Code search.
|
19 |
+
View our models [here](https://huggingface.co/flax-sentence-embeddings)
|
20 |
|
21 |
+
To evaluate the [flax-sentence-embeddings](https://huggingface.co/flax-sentence-embeddings) *Sentence Similarity models* for *Gender Bias based on stereotypical occupations*, we created an *evaluation set* which can be found [here](https://huggingface.co/datasets/manandey/Gender_Bias_Evaluation)
|
22 |
|
23 |
''')
|
24 |
|
25 |
if menu == "Sentence Similarity":
|
26 |
st.header('Sentence Similarity')
|
27 |
st.markdown('''
|
28 |
+
**Instructions**: You can compare the similarity of the main text with other texts of your choice. In the background, we'll create an embedding for each text, and then we'll use the cosine similarity function to calculate a similarity metric between our main sentence and the others.
|
29 |
|
30 |
For more cool information on sentence embeddings, see the [sBert project](https://www.sbert.net/examples/applications/computing-embeddings/README.html).
|
31 |
''')
|