def METHOD_NAME(model):
    st.sidebar.subheader("Parameters")
    try:
        session_state, model = get_states(model)
    except AttributeError:
        session_state = get(
            max_seq_length=model.args.max_seq_length,
            max_answer_length=model.args.max_answer_length,
            max_query_length=model.args.max_query_length,
        )
        session_state, model = get_states(model, session_state)
    model.args.max_seq_length = st.sidebar.slider(
        "Max Seq Length", min_value=1, max_value=512, value=model.args.max_seq_length
    )
    model.args.max_answer_length = st.sidebar.slider(
        "Max Answer Length",
        min_value=1,
        max_value=512,
        value=model.args.max_answer_length,
    )
    model.args.max_query_length = st.sidebar.slider(
        "Max Query Length",
        min_value=1,
        max_value=512,
        value=model.args.max_query_length,
    )
    model.args.n_best_size = st.sidebar.slider(
        "Number of answers to generate", min_value=1, max_value=20
    )
    st.subheader("Enter context: ")
    context_text = st.text_area("", key="context")
    st.subheader("Enter question: ")
    question_text = st.text_area("", key="question")
    if context_text and question_text:
        answers, probabilities = get_prediction(model, context_text, question_text)
        st.subheader(f"Predictions")
        answers = answers[0]["answer"]
        context_pieces = context_text.split(answers[0])
        if answers[0] != "empty":
            if len(context_pieces) == 2:
                st.write(
                    QA_ANSWER_WRAPPER.format(
                        context_pieces[0], answers[0], context_pieces[-1]
                    ),
                    unsafe_allow_html=True,
                )
            else:
                st.write(
                    QA_ANSWER_WRAPPER.format(
                        context_pieces[0],
                        answers[0],
                        answers[0].join(context_pieces[1:]),
                    ),
                    unsafe_allow_html=True,
                )
        else:
            st.write(
                QA_EMPTY_ANSWER_WRAPPER.format("", answers[0], ""),
                unsafe_allow_html=True,
            )
        probabilities = probabilities[0]["probability"]
        st.subheader("Confidence")
        output_df = pd.DataFrame({"Answer": answers, "Confidence": probabilities})
        st.dataframe(output_df)
    return model