Unable to Create Form

I am using Snowflake notebooks and trying to create a simple form.

import streamlit as st
with st.form(key='my_form'):
	text_input = st.text_input(label='Enter some text')
	submit_button = st.form_submit_button(label='Submit')

I am getting an error message with a link that takes me to a Github page that I am having trouble understanding. How can I resolve the issue?

Note that I have other streamlit functions working just fine in other parts of the notebook such as st.button, st.multiselect, st.session_state, etc.

Can you try this again and see if it is still a problem now? It’s working for me now, but I’m not sure exactly which deployment you are on.