Spaces:
Sleeping
Sleeping
DataRaptor
commited on
Commit
·
11cf12b
1
Parent(s):
f697034
Update app.py
Browse files
app.py
CHANGED
@@ -76,6 +76,9 @@ with st.sidebar:
|
|
76 |
# ctx_checker_tmp = st.slider('Context Checker Sensitivity', min_value=0.001, max_value=1.0, value=0.008, step=0.001)
|
77 |
ctx_checker_tmp = 0.008
|
78 |
lm_tmp = st.slider('Language Model Sensitivity', min_value=0.001, max_value=1.0, value=0.1, step=0.001)
|
|
|
|
|
|
|
79 |
verbose = st.checkbox('Show Detailed Response', value=False)
|
80 |
if verbose == True:
|
81 |
retv_cnt = st.slider('Display N retrived Doc', min_value=0, max_value=32, value=0, step=1)
|
@@ -121,6 +124,8 @@ def main():
|
|
121 |
"ctx_checker_tmp": ctx_checker_tmp,
|
122 |
"lm_tmp": lm_tmp,
|
123 |
"max_ctx": max_ctx,
|
|
|
|
|
124 |
}
|
125 |
}
|
126 |
resp = get_user_data(endpoint, params)
|
|
|
76 |
# ctx_checker_tmp = st.slider('Context Checker Sensitivity', min_value=0.001, max_value=1.0, value=0.008, step=0.001)
|
77 |
ctx_checker_tmp = 0.008
|
78 |
lm_tmp = st.slider('Language Model Sensitivity', min_value=0.001, max_value=1.0, value=0.1, step=0.001)
|
79 |
+
|
80 |
+
cls_threshold = st.slider('Classification Threshold', min_value=0.01, max_value=1.0, value=0.5, step=0.01)
|
81 |
+
|
82 |
verbose = st.checkbox('Show Detailed Response', value=False)
|
83 |
if verbose == True:
|
84 |
retv_cnt = st.slider('Display N retrived Doc', min_value=0, max_value=32, value=0, step=1)
|
|
|
124 |
"ctx_checker_tmp": ctx_checker_tmp,
|
125 |
"lm_tmp": lm_tmp,
|
126 |
"max_ctx": max_ctx,
|
127 |
+
"cls_threshold": cls_threshold,
|
128 |
+
"llm_enable": True,
|
129 |
}
|
130 |
}
|
131 |
resp = get_user_data(endpoint, params)
|