CarlosMalaga
commited on
Commit
•
c94e545
1
Parent(s):
698ca9f
Update app.py
Browse files
app.py
CHANGED
@@ -302,7 +302,7 @@ def run_client():
|
|
302 |
relik_model = st.session_state["relik_model"][0]
|
303 |
else:
|
304 |
model_idx = selection_options.index(selection_list)
|
305 |
-
if
|
306 |
relik_model = st.session_state["relik_model"][model_idx-1]
|
307 |
else:
|
308 |
relik_model = st.session_state["relik_model"][model_idx+1]
|
@@ -340,7 +340,7 @@ def run_client():
|
|
340 |
|
341 |
st.markdown(text, unsafe_allow_html=True)
|
342 |
else:
|
343 |
-
if
|
344 |
response = relik_model.retrieve(text, k=100, batch_size=400, progress_bar=False)
|
345 |
|
346 |
candidates_text = []
|
|
|
302 |
relik_model = st.session_state["relik_model"][0]
|
303 |
else:
|
304 |
model_idx = selection_options.index(selection_list)
|
305 |
+
if selection_list == "Top-k DB in Taxonomy Intervention" or selection_list == "Top-k DB in Taxonmy Outcome":
|
306 |
relik_model = st.session_state["relik_model"][model_idx-1]
|
307 |
else:
|
308 |
relik_model = st.session_state["relik_model"][model_idx+1]
|
|
|
340 |
|
341 |
st.markdown(text, unsafe_allow_html=True)
|
342 |
else:
|
343 |
+
if selection_list == "Top-k DB in Taxonomy Intervention" or selection_list == "Top-k DB in Taxonmy Outcome":
|
344 |
response = relik_model.retrieve(text, k=100, batch_size=400, progress_bar=False)
|
345 |
|
346 |
candidates_text = []
|