Spaces:
Running
Running
Yara Kyrychenko
commited on
Commit
Β·
4e49cd8
1
Parent(s):
b5fcbe3
increase dialog width
Browse files
app.py
CHANGED
@@ -114,7 +114,7 @@ with st.sidebar:
|
|
114 |
β **Do not share any personal information (e.g., name or address) in the chat.**
|
115 |
|
116 |
β οΈ You must respond **at least 5 times** before you can submit the conversation. An *End Conversation* button will appear then. You can continue before submitting, but **you must submit the conversation to receive compensation**.
|
117 |
-
|
118 |
{"β" if st.session_state.inserted > 1 else "β"} **Step 3. Use the *End Conversation* button to submit your response.**
|
119 |
|
120 |
βΊ *You can always return to this panel by clicking the arrow on the top left.*
|
@@ -125,7 +125,7 @@ with st.sidebar:
|
|
125 |
st.session_state.gotit = st.button("Let's start!", key=None, help=None, use_container_width=True)
|
126 |
|
127 |
|
128 |
-
@st.dialog('Form')
|
129 |
def form():
|
130 |
st.markdown("**β Please answer every question to proceed.**")
|
131 |
st.session_state.user_id = st.text_input(label="Enter your Prolific ID", value=st.session_state.user_id)
|
@@ -193,7 +193,7 @@ for message in st.session_state.messages:
|
|
193 |
with st.chat_message(message["role"]):
|
194 |
st.markdown(message["content"])
|
195 |
|
196 |
-
@st.dialog('Submit conversation')
|
197 |
def submit():
|
198 |
st.markdown("You must answer all questions marked with a β to submit.")
|
199 |
if st.query_params["p"] != "n":
|
|
|
114 |
β **Do not share any personal information (e.g., name or address) in the chat.**
|
115 |
|
116 |
β οΈ You must respond **at least 5 times** before you can submit the conversation. An *End Conversation* button will appear then. You can continue before submitting, but **you must submit the conversation to receive compensation**.
|
117 |
+
|
118 |
{"β" if st.session_state.inserted > 1 else "β"} **Step 3. Use the *End Conversation* button to submit your response.**
|
119 |
|
120 |
βΊ *You can always return to this panel by clicking the arrow on the top left.*
|
|
|
125 |
st.session_state.gotit = st.button("Let's start!", key=None, help=None, use_container_width=True)
|
126 |
|
127 |
|
128 |
+
@st.dialog('Form', width="large")
|
129 |
def form():
|
130 |
st.markdown("**β Please answer every question to proceed.**")
|
131 |
st.session_state.user_id = st.text_input(label="Enter your Prolific ID", value=st.session_state.user_id)
|
|
|
193 |
with st.chat_message(message["role"]):
|
194 |
st.markdown(message["content"])
|
195 |
|
196 |
+
@st.dialog('Submit conversation', width="large")
|
197 |
def submit():
|
198 |
st.markdown("You must answer all questions marked with a β to submit.")
|
199 |
if st.query_params["p"] != "n":
|