Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -406,18 +406,18 @@ with gr.Blocks(title="SPLADE Demos") as demo:
|
|
406 |
gr.Markdown("Explore different SPLADE models and their sparse representation types, and calculate similarity between query and document representations.") # Updated description
|
407 |
|
408 |
with gr.Tabs():
|
409 |
-
with gr.TabItem("Sparse Representation
|
410 |
-
gr.Markdown("###
|
411 |
gr.Interface(
|
412 |
fn=predict_representation_explorer,
|
413 |
inputs=[
|
414 |
gr.Radio(
|
415 |
[
|
416 |
-
"SPLADE-cocondenser-distil
|
417 |
-
"SPLADE-v3-
|
418 |
-
"
|
419 |
],
|
420 |
-
label="Choose
|
421 |
value="SPLADE-cocondenser-distil (weighting and expansion)"
|
422 |
),
|
423 |
gr.Textbox(
|
|
|
406 |
gr.Markdown("Explore different SPLADE models and their sparse representation types, and calculate similarity between query and document representations.") # Updated description
|
407 |
|
408 |
with gr.Tabs():
|
409 |
+
with gr.TabItem("Sparse Representation"):
|
410 |
+
gr.Markdown("### Produce a Sparse Representation of of an Input Text")
|
411 |
gr.Interface(
|
412 |
fn=predict_representation_explorer,
|
413 |
inputs=[
|
414 |
gr.Radio(
|
415 |
[
|
416 |
+
"MLM encoder (SPLADE-cocondenser-distil)",
|
417 |
+
"MLP encoder (SPLADE-v3-lexical)",
|
418 |
+
"Binary Encoder"
|
419 |
],
|
420 |
+
label="Choose Sparse Encoder",
|
421 |
value="SPLADE-cocondenser-distil (weighting and expansion)"
|
422 |
),
|
423 |
gr.Textbox(
|