Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -4,7 +4,7 @@ from pinecone import Pinecone
|
|
4 |
from sentence_transformers import SentenceTransformer
|
5 |
|
6 |
# Title of the Streamlit App
|
7 |
-
st.title("
|
8 |
|
9 |
# Initialize Pinecone globally
|
10 |
index = None
|
@@ -25,7 +25,7 @@ def connect_to_index(pc):
|
|
25 |
index_name = 'pubmed-splade' # Hardcoded index name
|
26 |
# Connect to the 'pubmed-splade' index
|
27 |
if index_name in pc.list_indexes().names():
|
28 |
-
st.info(f"Successfully connected to index '{index_name}'")
|
29 |
index = pc.Index(index_name)
|
30 |
return index
|
31 |
else:
|
|
|
4 |
from sentence_transformers import SentenceTransformer
|
5 |
|
6 |
# Title of the Streamlit App
|
7 |
+
st.title("Medical Hybrid Search")
|
8 |
|
9 |
# Initialize Pinecone globally
|
10 |
index = None
|
|
|
25 |
index_name = 'pubmed-splade' # Hardcoded index name
|
26 |
# Connect to the 'pubmed-splade' index
|
27 |
if index_name in pc.list_indexes().names():
|
28 |
+
#st.info(f"Successfully connected to index '{index_name}'")
|
29 |
index = pc.Index(index_name)
|
30 |
return index
|
31 |
else:
|