Skip to content

Commit

Permalink
Bugfix feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
dschiese committed Jun 19, 2024
1 parent cda2f13 commit 868a8cc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions explanation_frontend.py
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ def send_feedback(explanation, explanation_type, datatype, feedback):
"explanation": explanation,
"explanation_type": explanation_type,
"datatype": datatype,
"gpt_model": st.session_state.selected_gptModel["concrete_model"],
"gpt_model": st.session_state.selected_gptModel["concrete_model"][MODEL_KEY],
"shots": st.session_state.selected_gptModel["shots"],
"feedback": feedback
}
Expand Down Expand Up @@ -377,7 +377,7 @@ def not_pre_configured():
configButton = st.button("Change configuration", on_click=lambda: switch_view())
st.subheader('GPT Model', help="Select a GPT model to generate the generative explanation. Please note that an explanation with more shots will take longer to generate.")
gptModel = st.radio('What GPT model should create the generative explanation?', label_visibility="collapsed", options=gptModels, index=0, help=GPT_MODEL_HELP, captions=concrete_models)
selected_gptModel = gptModels_dic[gptModel]
st.session_state.selected_gptModel = gptModels_dic[gptModel]
if not st.session_state.showPreconfigured:
configButton = st.button("Change configuration", on_click=lambda: switch_view())

Expand Down

0 comments on commit 868a8cc

Please sign in to comment.