Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -59,18 +59,6 @@ INPUT_FIELD_DEFAULT_VALUES = {'slider': 0,
|
|
| 59 |
SHOW_HELP_ICON = False
|
| 60 |
SHOW_VALIDATION_ERROR_MESSAGE = True
|
| 61 |
|
| 62 |
-
annotation_guidelines_fields: List[Field] = [
|
| 63 |
-
Field(name="annotation_guidelines", type="radio", title="Did you read the guidelines?", mandatory=True,
|
| 64 |
-
other_params={'labels': ['Yes, in detail, and I understand the study',
|
| 65 |
-
'Yes, in detail, but still confused',
|
| 66 |
-
'Yes, I skimmed it',
|
| 67 |
-
'I will read it later',
|
| 68 |
-
'No, not interested in reading them',
|
| 69 |
-
'I can not open the link',
|
| 70 |
-
],
|
| 71 |
-
'accepted_values': [0]}),
|
| 72 |
-
]
|
| 73 |
-
|
| 74 |
########################################################################################
|
| 75 |
if filesystem == 'hf':
|
| 76 |
HF_TOKEN = os.environ.get("HF_TOKEN_WRITE")
|
|
@@ -686,8 +674,8 @@ def add_checked_submit():
|
|
| 686 |
add_validated_submit([check], "Please agree to give your consent to proceed")
|
| 687 |
|
| 688 |
def add_guidelines_submit():
|
| 689 |
-
check = st.checkbox('I have read
|
| 690 |
-
add_validated_submit([check], "
|
| 691 |
|
| 692 |
def load_text(path: str) -> str:
|
| 693 |
if filesystem == 'hf':
|
|
|
|
| 59 |
SHOW_HELP_ICON = False
|
| 60 |
SHOW_VALIDATION_ERROR_MESSAGE = True
|
| 61 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 62 |
########################################################################################
|
| 63 |
if filesystem == 'hf':
|
| 64 |
HF_TOKEN = os.environ.get("HF_TOKEN_WRITE")
|
|
|
|
| 674 |
add_validated_submit([check], "Please agree to give your consent to proceed")
|
| 675 |
|
| 676 |
def add_guidelines_submit():
|
| 677 |
+
check = st.checkbox('I have read the guidelines in detail, and I understand the study', key='consent')
|
| 678 |
+
add_validated_submit([check], "Please confirm to have carefully read the guidelines.")
|
| 679 |
|
| 680 |
def load_text(path: str) -> str:
|
| 681 |
if filesystem == 'hf':
|