SiddharthAK commited on
Commit
91fb382
·
verified ·
1 Parent(s): e47f5f8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -3,7 +3,7 @@ from transformers import AutoTokenizer, AutoModelForMaskedLM
3
  import torch
4
 
5
  # --- Model Loading ---
6
- # Load SPLADE v23 model and tokenizer
7
  # "naver/splade-v3" is a common and robust SPLADE v3 model.
8
  # Make sure you've accepted any user access agreements on its Hugging Face Hub page.
9
  try:
@@ -111,8 +111,8 @@ demo = gr.Interface(
111
  placeholder="e.g., Why is Padua the nicest city in Italy?"
112
  ),
113
  outputs=gr.Markdown(), # Use Markdown for richer text formatting (bolding terms)
114
- title="🌌 SPLADE v23 Sparse Representation Generator",
115
- description="Enter any text (query or document) to see its SPLADE v23 sparse vector representation. The output highlights the most important terms with their learned weights.",
116
  allow_flagging="never" # Disable flagging for this demo
117
  )
118
 
 
3
  import torch
4
 
5
  # --- Model Loading ---
6
+ # Load SPLADE v3 model and tokenizer
7
  # "naver/splade-v3" is a common and robust SPLADE v3 model.
8
  # Make sure you've accepted any user access agreements on its Hugging Face Hub page.
9
  try:
 
111
  placeholder="e.g., Why is Padua the nicest city in Italy?"
112
  ),
113
  outputs=gr.Markdown(), # Use Markdown for richer text formatting (bolding terms)
114
+ title="🌌 SPLADE v3 Sparse Representation Generator",
115
+ description="Enter any text (query or document) to see its SPLADE v3 sparse vector representation. The output highlights the most important terms with their learned weights.",
116
  allow_flagging="never" # Disable flagging for this demo
117
  )
118