Spaces:
Paused
Paused
Robin Genolet
commited on
Commit
·
a358346
1
Parent(s):
c011bf3
fix: selectbox
Browse files
app.py
CHANGED
@@ -19,7 +19,7 @@ from utils.openai_utils import get_available_engines, get_search_query_type_opti
|
|
19 |
from sklearn.metrics import confusion_matrix, ConfusionMatrixDisplay
|
20 |
from sklearn.metrics import classification_report
|
21 |
|
22 |
-
POC_VERSION = "0.1.
|
23 |
|
24 |
st.set_page_config(page_title='Medgate Whisper PoC', page_icon='public/medgate.png')
|
25 |
|
@@ -29,7 +29,7 @@ def display_streamlit_sidebar():
|
|
29 |
st.sidebar.write('**Parameters**')
|
30 |
form = st.sidebar.form("config_form", clear_on_submit=True)
|
31 |
|
32 |
-
model_name_or_path = form.selectbox("Select model", gptq_model_options(),
|
33 |
model_name_or_path_other = form.text_input('Or input any GPTQ model', value=st.session_state["model_name_or_path_other"])
|
34 |
|
35 |
temperature = form.slider(label="Temperature", min_value=0.0, max_value=1.0, step=0.01, value=st.session_state["temperature"])
|
|
|
19 |
from sklearn.metrics import confusion_matrix, ConfusionMatrixDisplay
|
20 |
from sklearn.metrics import classification_report
|
21 |
|
22 |
+
POC_VERSION = "0.1.1"
|
23 |
|
24 |
st.set_page_config(page_title='Medgate Whisper PoC', page_icon='public/medgate.png')
|
25 |
|
|
|
29 |
st.sidebar.write('**Parameters**')
|
30 |
form = st.sidebar.form("config_form", clear_on_submit=True)
|
31 |
|
32 |
+
model_name_or_path = form.selectbox("Select model", gptq_model_options(), index=st.session_state["model_index"])
|
33 |
model_name_or_path_other = form.text_input('Or input any GPTQ model', value=st.session_state["model_name_or_path_other"])
|
34 |
|
35 |
temperature = form.slider(label="Temperature", min_value=0.0, max_value=1.0, step=0.01, value=st.session_state["temperature"])
|