Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
|
@@ -1263,10 +1263,8 @@ def random_likert_questions():
|
|
| 1263 |
]
|
| 1264 |
},
|
| 1265 |
{
|
| 1266 |
-
"title": "",
|
| 1267 |
"key": "attention_check",
|
| 1268 |
-
"guide": """
|
| 1269 |
-
""",
|
| 1270 |
"questions": [
|
| 1271 |
{"key": "attention_check2", "question": "لطفاً خیلی زیاد (عدد 7) را انتخاب کنید.", "scale": 7, "labels": ["خیلی کم", "خیلی زیاد"]}
|
| 1272 |
]
|
|
@@ -1318,25 +1316,26 @@ def random_likert_questions():
|
|
| 1318 |
current_group = question_groups[st.session_state.current_likert_group]
|
| 1319 |
|
| 1320 |
st.markdown(f"## {current_group['title']}")
|
| 1321 |
-
|
| 1322 |
-
|
| 1323 |
-
|
| 1324 |
-
|
| 1325 |
-
|
| 1326 |
-
|
| 1327 |
-
|
| 1328 |
-
|
| 1329 |
-
|
| 1330 |
-
|
| 1331 |
-
|
| 1332 |
-
|
| 1333 |
-
|
| 1334 |
-
|
| 1335 |
-
|
| 1336 |
-
|
|
|
|
|
|
|
| 1337 |
</div>
|
| 1338 |
-
|
| 1339 |
-
""", unsafe_allow_html=True)
|
| 1340 |
|
| 1341 |
# نمایش تمام سوالات این گروه
|
| 1342 |
for question in current_group['questions']:
|
|
|
|
| 1263 |
]
|
| 1264 |
},
|
| 1265 |
{
|
| 1266 |
+
"title": "فقط پاسخ دهید.",
|
| 1267 |
"key": "attention_check",
|
|
|
|
|
|
|
| 1268 |
"questions": [
|
| 1269 |
{"key": "attention_check2", "question": "لطفاً خیلی زیاد (عدد 7) را انتخاب کنید.", "scale": 7, "labels": ["خیلی کم", "خیلی زیاد"]}
|
| 1270 |
]
|
|
|
|
| 1316 |
current_group = question_groups[st.session_state.current_likert_group]
|
| 1317 |
|
| 1318 |
st.markdown(f"## {current_group['title']}")
|
| 1319 |
+
if 'guide' in current_group:
|
| 1320 |
+
st.markdown(f"""
|
| 1321 |
+
<div class="guide-text" style="
|
| 1322 |
+
display: flex;
|
| 1323 |
+
flex-direction: column;
|
| 1324 |
+
align-items: center;
|
| 1325 |
+
background-color: #f0f2f6;
|
| 1326 |
+
border-radius: 10px;
|
| 1327 |
+
padding: 15px;
|
| 1328 |
+
gap: 10px;
|
| 1329 |
+
font-size: 5px !important;
|
| 1330 |
+
">
|
| 1331 |
+
<div style="flex: 1; font-size: inherit !important;">
|
| 1332 |
+
{current_group['guide']}
|
| 1333 |
+
<p class="little">
|
| 1334 |
+
اگر از پاسخهایتان مطمئن هستید، روی دکمه «ادامه» کلیک کنید.
|
| 1335 |
+
</p>
|
| 1336 |
+
</div>
|
| 1337 |
</div>
|
| 1338 |
+
""", unsafe_allow_html=True)
|
|
|
|
| 1339 |
|
| 1340 |
# نمایش تمام سوالات این گروه
|
| 1341 |
for question in current_group['questions']:
|