Add XY axis on white background

I’m setting both paper and plot background to white

    paper_bgcolor='rgba(255,255,255,1)',
    plot_bgcolor='rgba(255,255,255,1)',

Unfortunatlly, I’m trying to add the xy axis to the graph(below). Reading the reference, I thought setting grid=dict(rows=1,columns=1) would do, but I couldn’t get it to work.
What am I missing?

Full code:

    fig = px.box(pd_data, x="Epoch", y="Cosine similarity", color="Type",
                notched=True, # used notched shape
                title="Box plot of Cos similarity",
                hover_data=["Pair"] # add day column to hover data
                )

    fig.update_layout(title_text="",
        paper_bgcolor='rgba(255,255,255,1)',\
    plot_bgcolor='rgba(255,255,255,1)',\
                  title_font_size=30)

Result:


Desired: