Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -1268,30 +1268,79 @@ with gr.Blocks(theme= gr.themes.Glass(), css=css) as app:
|
|
| 1268 |
|
| 1269 |
with gr.Row(visible=True) as page_1:
|
| 1270 |
with gr.Column():
|
| 1271 |
-
gr.Markdown("
|
| 1272 |
-
|
| 1273 |
-
##
|
| 1274 |
-
|
| 1275 |
-
|
| 1276 |
-
|
| 1277 |
-
##
|
| 1278 |
-
##
|
| 1279 |
-
|
| 1280 |
-
#
|
| 1281 |
-
|
| 1282 |
-
##
|
| 1283 |
-
|
| 1284 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1285 |
|
| 1286 |
|
| 1287 |
-
|
| 1288 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1289 |
|
| 1290 |
-
|
| 1291 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1292 |
""")
|
|
|
|
| 1293 |
# Consent by pressing the button
|
| 1294 |
-
briefing_start_button = gr.Button("
|
| 1295 |
|
| 1296 |
########################################################################
|
| 1297 |
# Page 2: Pretest: PHQ-9
|
|
@@ -1366,16 +1415,16 @@ with gr.Blocks(theme= gr.themes.Glass(), css=css) as app:
|
|
| 1366 |
with gr.Row(visible=False) as page_5:
|
| 1367 |
with gr.Column():
|
| 1368 |
# Existing chatbot code
|
| 1369 |
-
gr.Markdown("""### Engage with the chatbot by typing your messages below and submitting with **Enter**.""")
|
| 1370 |
chatbot = gr.Chatbot(value = [(None, "Hello! I'm Evaline, your guide for this assessment. Are you ready to get started?")], label= "Evaline")
|
| 1371 |
-
user_message = gr.Textbox(placeholder="Type your message here...", label= "Your Message", lines=
|
| 1372 |
|
| 1373 |
# Slider for Attributions (Initially Hidden)
|
| 1374 |
attribution_slider = gr.Slider(
|
| 1375 |
minimum=1,
|
| 1376 |
maximum=10,
|
| 1377 |
step=1,
|
| 1378 |
-
label="Definitely Option A Definitely Option B",
|
| 1379 |
visible=False,
|
| 1380 |
interactive=True,
|
| 1381 |
elem_classes=["custom-slider"] # Apply custom CSS class
|
|
|
|
| 1268 |
|
| 1269 |
with gr.Row(visible=True) as page_1:
|
| 1270 |
with gr.Column():
|
| 1271 |
+
gr.Markdown("""
|
| 1272 |
+
# **Information for Participants and Declaration of Consent**
|
| 1273 |
+
##**Evaluating the Validity of LLM-Based Psychological Assessments**
|
| 1274 |
+
|
| 1275 |
+
---
|
| 1276 |
+
|
| 1277 |
+
## **Dear Participant,**
|
| 1278 |
+
### We invite you to participate in the study described above. Your participation is entirely voluntary. You may refuse to participate or withdraw at any time without needing to provide a reason, and doing so will have no negative consequences for you.
|
| 1279 |
+
|
| 1280 |
+
### This study is designed to contribute to academic research by exploring a novel type of psychological assessment using advanced AI technology.
|
| 1281 |
+
|
| 1282 |
+
### Please read the following information carefully before deciding whether to participate. You may proceed only after acknowledging that you understand the study and your rights as a participant.
|
| 1283 |
+
|
| 1284 |
+
---
|
| 1285 |
+
|
| 1286 |
+
## **Purpose of the Study**
|
| 1287 |
+
### This study aims to evaluate whether an AI-based psychological assessment can provide insights into cognitive patterns comparable to traditional methods.
|
| 1288 |
+
|
| 1289 |
+
---
|
| 1290 |
+
|
| 1291 |
+
## **Study Procedure**
|
| 1292 |
+
### - The study consists of three online sessions, taking approximately 1 to 1.5 hours in total.
|
| 1293 |
+
### - You will reflect on various scenarios and provide feedback on your experience.
|
| 1294 |
+
|
| 1295 |
+
---
|
| 1296 |
+
|
| 1297 |
+
## **Potential Benefits**
|
| 1298 |
+
### While there are no direct personal benefits, your participation will contribute to research that could help improve psychological diagnostic tools using AI.
|
| 1299 |
+
|
| 1300 |
+
---
|
| 1301 |
+
|
| 1302 |
+
## **Potential Risks**
|
| 1303 |
+
### - The study presents minimal risks.
|
| 1304 |
+
### - Some scenarios may ask you to reflect on personal responsibility, which could cause minor emotional discomfort.
|
| 1305 |
+
### - If you feel uncomfortable, you can withdraw at any time.
|
| 1306 |
+
|
| 1307 |
+
## **Eligibility Criteria:**
|
| 1308 |
+
### - Participants must be 18 or older, fluent in English, and score below the clinical threshold on pre-screening mental health questionnaires.
|
| 1309 |
+
### - Participants with diagnosed mental health disorders or high scores on these questionnaires are excluded.
|
| 1310 |
+
|
| 1311 |
+
---
|
| 1312 |
+
|
| 1313 |
+
## **Data Handling and Privacy**
|
| 1314 |
+
### - Your data will be anonymised and used only for statistical purposes.
|
| 1315 |
+
### - No personal identifying information will be collected.
|
| 1316 |
+
### - The data will be securely stored and accessed only by authorised study personnel.
|
| 1317 |
+
|
| 1318 |
+
---
|
| 1319 |
+
|
| 1320 |
+
## **Reimbursement**
|
| 1321 |
+
### - You will not incur any costs for participating.
|
| 1322 |
+
### - Compensation will be provided through Prolific based on the time spent participating.
|
| 1323 |
|
| 1324 |
|
| 1325 |
+
---
|
| 1326 |
+
|
| 1327 |
+
## **Withdrawal and Contact Information**
|
| 1328 |
+
### - You may withdraw at any time without providing a reason.
|
| 1329 |
+
### - If you experience any discomfort or have questions about the study, please contact the coordinators:
|
| 1330 |
+
#### - **Nace Mikus**: nace.mikus@univie.ac.at
|
| 1331 |
+
#### - **Jakob Möller**: a12028569@unet.univie.ac.at
|
| 1332 |
|
| 1333 |
+
---
|
| 1334 |
+
|
| 1335 |
+
## **Acknowledgment**
|
| 1336 |
+
### By clicking "I Acknowledge and Consent" you confirm that:
|
| 1337 |
+
### - You have read and understood the information provided.
|
| 1338 |
+
### - You are aware of your right to withdraw at any time without consequences.
|
| 1339 |
+
### - You agree to participate in the study and for your anonymised data to be used for academic research.
|
| 1340 |
""")
|
| 1341 |
+
|
| 1342 |
# Consent by pressing the button
|
| 1343 |
+
briefing_start_button = gr.Button("I Acknowledge and Consent")
|
| 1344 |
|
| 1345 |
########################################################################
|
| 1346 |
# Page 2: Pretest: PHQ-9
|
|
|
|
| 1415 |
with gr.Row(visible=False) as page_5:
|
| 1416 |
with gr.Column():
|
| 1417 |
# Existing chatbot code
|
| 1418 |
+
gr.Markdown("""### Engage with the chatbot by typing your messages below and submitting with **Enter**. Don't worry, this chatbot does not have live access to the internet. Your data will only be processed locally.""")
|
| 1419 |
chatbot = gr.Chatbot(value = [(None, "Hello! I'm Evaline, your guide for this assessment. Are you ready to get started?")], label= "Evaline")
|
| 1420 |
+
user_message = gr.Textbox(placeholder="Type your message here...", label= "Your Message", lines=1)
|
| 1421 |
|
| 1422 |
# Slider for Attributions (Initially Hidden)
|
| 1423 |
attribution_slider = gr.Slider(
|
| 1424 |
minimum=1,
|
| 1425 |
maximum=10,
|
| 1426 |
step=1,
|
| 1427 |
+
label="1 = Definitely Option A 10 = Definitely Option B",
|
| 1428 |
visible=False,
|
| 1429 |
interactive=True,
|
| 1430 |
elem_classes=["custom-slider"] # Apply custom CSS class
|