CarlosMalaga
commited on
Commit
•
b2f1b45
1
Parent(s):
0240650
Update app.py
Browse files
app.py
CHANGED
@@ -177,8 +177,8 @@ def load_model():
|
|
177 |
)
|
178 |
|
179 |
retriever_question_db = GoldenRetriever(
|
180 |
-
question_encoder="/home/user/app/models/retriever/question_encoder",
|
181 |
-
document_index="/home/user/app/models/retriever/document_index
|
182 |
|
183 |
)
|
184 |
|
@@ -283,9 +283,12 @@ def run_client():
|
|
283 |
|
284 |
elif analysis_type == "db intervention":
|
285 |
relik_model = st.session_state["relik_model"][4]
|
|
|
|
|
|
|
286 |
|
287 |
else:
|
288 |
-
relik_model = st.session_state["relik_model"][
|
289 |
|
290 |
text = text.strip()
|
291 |
if text:
|
|
|
177 |
)
|
178 |
|
179 |
retriever_question_db = GoldenRetriever(
|
180 |
+
question_encoder="/home/user/app/models/retriever/level-4-small-no-negatives/question_encoder",
|
181 |
+
document_index="/home/user/app/models/retriever/level-4-small-no-negatives/document_index"
|
182 |
|
183 |
)
|
184 |
|
|
|
283 |
|
284 |
elif analysis_type == "db intervention":
|
285 |
relik_model = st.session_state["relik_model"][4]
|
286 |
+
|
287 |
+
elif analysis_type == "db outcome":
|
288 |
+
relik_model = st.session_state["relik_model"][5]
|
289 |
|
290 |
else:
|
291 |
+
relik_model = st.session_state["relik_model"][3]
|
292 |
|
293 |
text = text.strip()
|
294 |
if text:
|