Spaces:
Sleeping
Sleeping
DataRaptor
commited on
Commit
Β·
b3ce2bf
1
Parent(s):
5241209
Update app.py
Browse files
app.py
CHANGED
@@ -71,9 +71,12 @@ model_names = {
|
|
71 |
with st.sidebar:
|
72 |
st.title("SuSastho.AI - ChatBot π")
|
73 |
model_name = model_names[st.selectbox('Model', list(model_names.keys()), 0)]
|
74 |
-
|
75 |
-
|
|
|
|
|
76 |
lm_tmp = st.slider('Language Model Sensitivity', min_value=0.001, max_value=1.0, value=0.1, step=0.001)
|
|
|
77 |
|
78 |
|
79 |
|
@@ -115,6 +118,7 @@ def main():
|
|
115 |
"config": {
|
116 |
"ctx_checker_tmp": ctx_checker_tmp,
|
117 |
"lm_tmp": lm_tmp,
|
|
|
118 |
}
|
119 |
}
|
120 |
resp = get_user_data(endpoint, params)
|
|
|
71 |
with st.sidebar:
|
72 |
st.title("SuSastho.AI - ChatBot π")
|
73 |
model_name = model_names[st.selectbox('Model', list(model_names.keys()), 0)]
|
74 |
+
|
75 |
+
max_ctx = st.slider('Select Top N Context', min_value=1, max_value=6, value=4, step=1)
|
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 |
|
81 |
|
82 |
|
|
|
118 |
"config": {
|
119 |
"ctx_checker_tmp": ctx_checker_tmp,
|
120 |
"lm_tmp": lm_tmp,
|
121 |
+
"max_ctx": max_ctx,
|
122 |
}
|
123 |
}
|
124 |
resp = get_user_data(endpoint, params)
|