Spaces:
Sleeping
Sleeping
Create app.py
Browse files
app.py
ADDED
@@ -0,0 +1,70 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import gradio as gr
|
2 |
+
|
3 |
+
headers = [
|
4 |
+
"Rank",
|
5 |
+
"Model",
|
6 |
+
"Average",
|
7 |
+
"STS12",
|
8 |
+
"STS13",
|
9 |
+
"STS14",
|
10 |
+
"STS15",
|
11 |
+
"STS16",
|
12 |
+
"SICK-E",
|
13 |
+
"SICK-F",
|
14 |
+
"STS-B",
|
15 |
+
"STS12",
|
16 |
+
"STS13",
|
17 |
+
"STS14",
|
18 |
+
"STS15",
|
19 |
+
"STS16",
|
20 |
+
"SICK-R",
|
21 |
+
"STS-B",
|
22 |
+
"STS12",
|
23 |
+
]
|
24 |
+
list = [
|
25 |
+
'<a target="_blank" style="text-decoration: underline" href="https://huggingface.co/intfloat/multilingual-e5-large-instruct">multilingual-e5-large-instruct</a>',
|
26 |
+
'<a target="_blank" style="text-decoration: underline" href="https://huggingface.co/facebook/SONAR">SONAR</a>',
|
27 |
+
'<a target="_blank" style="text-decoration: underline" href="https://huggingface.co/sentence-transformers/LaBSE">LaBSE</a>',
|
28 |
+
'<a target="_blank" style="text-decoration: underline" href="https://huggingface.co/intfloat/multilingual-e5-large">multilingual-e5-large</a>',
|
29 |
+
'<a target="_blank" style="text-decoration: underline" href="https://huggingface.co/intfloat/e5-mistral-7b-instruct">e5-mistral-7b-instruct</a>',
|
30 |
+
'<a target="_blank" style="text-decoration: underline" href="https://huggingface.co/intfloat/multilingual-e5-base">multilingual-e5-base</a>',
|
31 |
+
'<a target="_blank" style="text-decoration: underline" href="https://github.com/facebookresearch/LASER">LASER2</a>',
|
32 |
+
'<a target="_blank" style="text-decoration: underline" href="https://huggingface.co/intfloat/multilingual-e5-small">multilingual-e5-small</a>',
|
33 |
+
'<a target="_blank" style="text-decoration: underline" href="https://huggingface.co/sentence-transformers/paraphrase-multilingual-mpnet-base-v2">paraphrase-multilingual-mpnet-base-v2</a>',
|
34 |
+
'<a target="_blank" style="text-decoration: underline" href="https://huggingface.co/sentence-transformers/paraphrase-multilingual-MiniLM-L12-v2">paraphrase-multilingual-MiniLM-L12-v2</a>',
|
35 |
+
'<a target="_blank" style="text-decoration: underline" href="https://huggingface.co/izhx/udever-bloom-7b1">udever-bloom-7b1</a>',
|
36 |
+
'<a target="_blank" style="text-decoration: underline" href="https://huggingface.co/izhx/udever-bloom-3b">udever-bloom-3b</a>',
|
37 |
+
'<a target="_blank" style="text-decoration: underline" href="https://huggingface.co/bigscience/sgpt-bloom-7b1-msmarco">sgpt-bloom-7b1-msmarco</a>',
|
38 |
+
'<a target="_blank" style="text-decoration: underline" href="https://huggingface.co/izhx/udever-bloom-1b1">udever-bloom-1b1</a>',
|
39 |
+
'<a target="_blank" style="text-decoration: underline" href="https://huggingface.co/izhx/udever-bloom-560m">udever-bloom-560m</a>',
|
40 |
+
'<a target="_blank" style="text-decoration: underline" href="https://huggingface.co/sentence-transformers/sentence-t5-xl">sentence-t5-xl</a>',
|
41 |
+
'<a target="_blank" style="text-decoration: underline" href="https://huggingface.co/sentence-transformers/gtr-t5-xl">gtr-t5-xl</a>',
|
42 |
+
'<a target="_blank" style="text-decoration: underline" href="https://huggingface.co/ClayAtlas/winberta-base">winberta-base</a>',
|
43 |
+
'<a target="_blank" style="text-decoration: underline" href="https://huggingface.co/sentence-transformers/sentence-t5-large">sentence-t5-large</a>',
|
44 |
+
'<a target="_blank" style="text-decoration: underline" href="https://huggingface.co/avsolatorio/GIST-Embedding-v0">GIST-Embedding-v0</a>',
|
45 |
+
'<a target="_blank" style="text-decoration: underline" href="https://huggingface.co/sentence-transformers/average_word_embeddings_komninos">komninos</a>',
|
46 |
+
'<a target="_blank" style="text-decoration: underline" href="https://huggingface.co/DMetaSoul/sbert-chinese-general-v1">sbert-chinese-general-v1</a>',
|
47 |
+
'<a target="_blank" style="text-decoration: underline" href="https://huggingface.co/Muennighoff/SGPT-125M-weightedmean-nli-bitfit">SGPT-125M-weightedmean-nli-bitfit</a>',
|
48 |
+
'<a target="_blank" style="text-decoration: underline" href="https://huggingface.co/Muennighoff/SGPT-5.8B-weightedmean-nli-bitfit">SGPT-5.8B-weightedmean-nli-bitfit</a>',
|
49 |
+
'<a target="_blank" style="text-decoration: underline" href="https://huggingface.co/jinaai/jina-embeddings-v2-base-de">jina-embeddings-v2-base-de</a>',
|
50 |
+
'<a target="_blank" style="text-decoration: underline" href="https://huggingface.co/sentence-transformers/average_word_embeddings_glove.6B.300d">glove.6B.300d</a>',
|
51 |
+
'<a target="_blank" style="text-decoration: underline" href="https://huggingface.co/zhou-xl/bi-cse">bi-cse</a>',
|
52 |
+
]
|
53 |
+
|
54 |
+
|
55 |
+
def make_long_table():
|
56 |
+
new_list = []
|
57 |
+
for i in enumerate(list):
|
58 |
+
new_list.append([i[0], i[1]] + [i[0]] * 16)
|
59 |
+
|
60 |
+
return {"headers": headers, "data": new_list}
|
61 |
+
|
62 |
+
|
63 |
+
with gr.Blocks() as demo:
|
64 |
+
gr.Dataframe(
|
65 |
+
value=make_long_table(),
|
66 |
+
datatype=["number", "html"] + ["number"] * 16,
|
67 |
+
)
|
68 |
+
|
69 |
+
if __name__ == "__main__":
|
70 |
+
demo.launch()
|