wendys-llc commited on
Commit
37c0d9a
1 Parent(s): f389830

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -2
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
- gr.Markdown("Here is an example text")
64
- demo = gr.Interface(fn=do_action, inputs=[query_input, docs_input], outputs=["markdown", output_scores])
 
 
 
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()