Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -3,7 +3,7 @@ from transformers import AutoTokenizer, AutoModelForMaskedLM
|
|
3 |
import torch
|
4 |
|
5 |
# --- Model Loading ---
|
6 |
-
# Load SPLADE
|
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
|
115 |
-
description="Enter any text (query or document) to see its SPLADE
|
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 |
|