Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -60,6 +60,9 @@ query_input = gr.Textbox(value="Get rich quick by flipping cheap houses")
|
|
| 60 |
docs_input = gr.Textbox(value=samples, label="Sentences")
|
| 61 |
output_scores = gr.DataFrame(label="", wrap=True, scale=2)
|
| 62 |
|
| 63 |
-
|
| 64 |
-
|
|
|
|
|
|
|
|
|
|
| 65 |
demo.launch()
|
|
|
|
| 60 |
docs_input = gr.Textbox(value=samples, label="Sentences")
|
| 61 |
output_scores = gr.DataFrame(label="", wrap=True, scale=2)
|
| 62 |
|
| 63 |
+
title = "Multilingual Semantic Search Comparison"
|
| 64 |
+
desc = """
|
| 65 |
+
A small demo to compare the [all-MiniLM-L12-v2](https://huggingface.co/sentence-transformers/all-MiniLM-L12-v2) and [paraphrase-multilingual-MiniLM-L12-v2](https://huggingface.co/sentence-transformers/paraphrase-multilingual-MiniLM-L12-v2) embedding models. Notice how the multilingual model scores similar sentences higher, even if they aren't in the same language!
|
| 66 |
+
"""
|
| 67 |
+
demo = gr.Interface(fn=do_action, title=title, description=desc, inputs=[query_input, docs_input], outputs=["markdown", output_scores])
|
| 68 |
demo.launch()
|