CarlosMalaga commited on
Commit
4c778a8
1 Parent(s): 7f7fc6a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -4
app.py CHANGED
@@ -203,8 +203,6 @@ def load_model():
203
 
204
  )
205
 
206
-
207
-
208
 
209
  retriever_outcome_gpt_taxonomy = GoldenRetriever(
210
  question_encoder="models/retriever/outcome/gpt/taxonomy/question_encoder",
@@ -263,7 +261,7 @@ def run_client():
263
  index=0 # Default to 'question'
264
  )
265
 
266
- selection_options = ["DB Intervention", "DB Outcome", "Top-k DB Intervention", "Top-k Soft DB Outcome", "Taxonomy Intervention", "Taxonomy Outcome"]
267
 
268
  if analysis_type == "Retriever":
269
  # Selection list using selectbox
@@ -307,7 +305,10 @@ def run_client():
307
  entity_linking_bool = True
308
  else:
309
  model_idx = selection_options.index(selection_list)
310
- relik_model = st.session_state["relik_model"][model_idx+1]
 
 
 
311
 
312
 
313
  text = text.strip()
 
203
 
204
  )
205
 
 
 
206
 
207
  retriever_outcome_gpt_taxonomy = GoldenRetriever(
208
  question_encoder="models/retriever/outcome/gpt/taxonomy/question_encoder",
 
261
  index=0 # Default to 'question'
262
  )
263
 
264
+ selection_options = ["DB Intervention", "DB Outcome", "Taxonomy Intervention", "Taxonomy Outcome", "Top-k DB Intervention", "Top-k Soft DB Outcome", ]
265
 
266
  if analysis_type == "Retriever":
267
  # Selection list using selectbox
 
305
  entity_linking_bool = True
306
  else:
307
  model_idx = selection_options.index(selection_list)
308
+ if "Top-k" in selection_options:
309
+ relik_model = st.session_state["relik_model"][model_idx-1]
310
+ else:
311
+ relik_model = st.session_state["relik_model"][model_idx+1]
312
 
313
 
314
  text = text.strip()