Spaces:
Running
Running
added scrolling node and got rid of prolific url (code only)
Browse files- src/streamlit_app.py +2 -10
src/streamlit_app.py
CHANGED
|
@@ -992,6 +992,7 @@ def screen_chat(s):
|
|
| 992 |
st.info(f"Maximum turns ({MAX_TURNS}) reached. Please proceed.")
|
| 993 |
else:
|
| 994 |
st.caption(f"Turns: {num_turns} / minimum {MIN_TURNS}")
|
|
|
|
| 995 |
|
| 996 |
if num_turns < MAX_TURNS:
|
| 997 |
user_msg = st.text_area(
|
|
@@ -1155,16 +1156,7 @@ def screen_done(s):
|
|
| 1155 |
st.markdown("---")
|
| 1156 |
st.success(
|
| 1157 |
f"**Your completion code:** `{PROLIFIC_COMPLETION_CODE}`\n\n"
|
| 1158 |
-
"
|
| 1159 |
-
"or copy the code above and paste it on the Prolific website."
|
| 1160 |
-
)
|
| 1161 |
-
st.markdown(
|
| 1162 |
-
f"""<a href="{PROLIFIC_COMPLETION_URL}" target="_self">
|
| 1163 |
-
<button style="background:#2563eb;color:white;border:none;padding:12px 28px;
|
| 1164 |
-
font-size:1rem;border-radius:6px;cursor:pointer;margin-top:8px;">
|
| 1165 |
-
✅ Return to Prolific
|
| 1166 |
-
</button></a>""",
|
| 1167 |
-
unsafe_allow_html=True,
|
| 1168 |
)
|
| 1169 |
|
| 1170 |
|
|
|
|
| 992 |
st.info(f"Maximum turns ({MAX_TURNS}) reached. Please proceed.")
|
| 993 |
else:
|
| 994 |
st.caption(f"Turns: {num_turns} / minimum {MIN_TURNS}")
|
| 995 |
+
st.caption("💡 If you don't see the latest messages, scroll down while hovering over the conversation.")
|
| 996 |
|
| 997 |
if num_turns < MAX_TURNS:
|
| 998 |
user_msg = st.text_area(
|
|
|
|
| 1156 |
st.markdown("---")
|
| 1157 |
st.success(
|
| 1158 |
f"**Your completion code:** `{PROLIFIC_COMPLETION_CODE}`\n\n"
|
| 1159 |
+
"Please copy this code and paste it on the Prolific website to complete your submission."
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1160 |
)
|
| 1161 |
|
| 1162 |
|