SiddharthAK commited on
Commit
a0d59cd
·
verified ·
1 Parent(s): 2009929

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -6
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 Explorer"):
410
- gr.Markdown("### Explore Raw SPLADE Representations for Any Text")
411
  gr.Interface(
412
  fn=predict_representation_explorer,
413
  inputs=[
414
  gr.Radio(
415
  [
416
- "SPLADE-cocondenser-distil (weighting and expansion)",
417
- "SPLADE-v3-Lexical (weighting)",
418
- "SPLADE-v3-Doc (binary)"
419
  ],
420
- label="Choose Representation Model",
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(