Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -431,7 +431,7 @@ with gr.Blocks(title="SPLADE Demos") as demo:
|
|
431 |
# live=True # Setting live=True might be slow for complex models on every keystroke
|
432 |
)
|
433 |
|
434 |
-
with gr.TabItem("
|
435 |
gr.Markdown("### Calculate Dot Product Similarity between Query and Document")
|
436 |
gr.Markdown("Select **independent** SPLADE models to encode your query and document, then see their sparse representations and their similarity score.")
|
437 |
|
@@ -463,7 +463,7 @@ with gr.Blocks(title="SPLADE Demos") as demo:
|
|
463 |
gr.Textbox(
|
464 |
lines=5,
|
465 |
label="Enter Document Text:",
|
466 |
-
placeholder="e.g., Padua is
|
467 |
)
|
468 |
],
|
469 |
outputs=gr.Markdown(),
|
|
|
431 |
# live=True # Setting live=True might be slow for complex models on every keystroke
|
432 |
)
|
433 |
|
434 |
+
with gr.TabItem("Compare Encoders"): # NEW TAB
|
435 |
gr.Markdown("### Calculate Dot Product Similarity between Query and Document")
|
436 |
gr.Markdown("Select **independent** SPLADE models to encode your query and document, then see their sparse representations and their similarity score.")
|
437 |
|
|
|
463 |
gr.Textbox(
|
464 |
lines=5,
|
465 |
label="Enter Document Text:",
|
466 |
+
placeholder="e.g., Padua's cuisine is as famous as its legendary University."
|
467 |
)
|
468 |
],
|
469 |
outputs=gr.Markdown(),
|