SiddharthAK commited on
Commit
085c950
·
verified ·
1 Parent(s): a99f072

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -510,7 +510,7 @@ def get_current_share_url():
510
  # --- Gradio Interface Setup with Tabs ---
511
  with gr.Blocks(title="SPLADE Demos", css=css) as demo:
512
  gr.Markdown("# 🌌 Sparse Encoder Playground") # Updated title
513
- gr.Markdown("Explore different SPLADE models and their sparse representation types, and calculate similarity between query and document representations.") # Updated description
514
 
515
  with gr.Tabs():
516
  with gr.TabItem("Sparse Representation"):
@@ -529,7 +529,7 @@ with gr.Blocks(title="SPLADE Demos", css=css) as demo:
529
  input_text = gr.Textbox(
530
  lines=5,
531
  label="Enter your query or document text here:",
532
- placeholder="e.g., Why is Padua the nicest city in Italy?"
533
  )
534
 
535
  # Custom Share Button and URL display
@@ -607,12 +607,12 @@ with gr.Blocks(title="SPLADE Demos", css=css) as demo:
607
  query_text_input = gr.Textbox(
608
  lines=3,
609
  label="Enter Query Text:",
610
- placeholder="e.g., famous dishes of Padua"
611
  )
612
  doc_text_input = gr.Textbox(
613
  lines=5,
614
  label="Enter Document Text:",
615
- placeholder="e.g., Padua's cuisine is as famous as its legendary University."
616
  )
617
 
618
  # --- MODIFIED: Output component as a gr.Markdown with scrolling ---
 
510
  # --- Gradio Interface Setup with Tabs ---
511
  with gr.Blocks(title="SPLADE Demos", css=css) as demo:
512
  gr.Markdown("# 🌌 Sparse Encoder Playground") # Updated title
513
+ gr.Markdown("Welcome to the official demo for the ECIR 2026 edition of the tutorial: Neural Lexical Search with Learned Sparse Retrieval (LSR). Explore different SPLADE models and their sparse representation types, and calculate similarity between query and document representations. Note that splade-lexical is used here to illustrate the effects of term weighting; the actual end-to-end implemention does in fact do expansion and weighting on the document side.") # Updated description
514
 
515
  with gr.Tabs():
516
  with gr.TabItem("Sparse Representation"):
 
529
  input_text = gr.Textbox(
530
  lines=5,
531
  label="Enter your query or document text here:",
532
+ placeholder="e.g., what is Delft well-known for?"
533
  )
534
 
535
  # Custom Share Button and URL display
 
607
  query_text_input = gr.Textbox(
608
  lines=3,
609
  label="Enter Query Text:",
610
+ placeholder="e.g., famous sites of Delft"
611
  )
612
  doc_text_input = gr.Textbox(
613
  lines=5,
614
  label="Enter Document Text:",
615
+ placeholder="e.g., Delft's pottery is as famous as its legendary university."
616
  )
617
 
618
  # --- MODIFIED: Output component as a gr.Markdown with scrolling ---