Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -16,6 +16,7 @@ class Field:
|
|
16 |
name: str = None
|
17 |
help: Optional[str] = None
|
18 |
children: List['Field'] = None
|
|
|
19 |
|
20 |
|
21 |
# Function to get user ID from URL
|
@@ -47,7 +48,7 @@ fields: List[Field] = [
|
|
47 |
Field(name="to_moderate", type="radio",
|
48 |
title="**Moderator Intervention**: Do feel this comment/discussion would benefit from moderator intervention?"),
|
49 |
Field(name="actions_clear", type="select_slider",
|
50 |
-
title="**Priority**: With what level of priority would you need to interact with this comment?"),
|
51 |
]),
|
52 |
#Field(type="expander",
|
53 |
# title="Expand and fill-out this section if you see **issues in the original comment**",
|
|
|
16 |
name: str = None
|
17 |
help: Optional[str] = None
|
18 |
children: List['Field'] = None
|
19 |
+
other_params: Optional[Dict[str, object]] = field(default_factory=lambda: {})
|
20 |
|
21 |
|
22 |
# Function to get user ID from URL
|
|
|
48 |
Field(name="to_moderate", type="radio",
|
49 |
title="**Moderator Intervention**: Do feel this comment/discussion would benefit from moderator intervention?"),
|
50 |
Field(name="actions_clear", type="select_slider",
|
51 |
+
title="**Priority**: With what level of priority would you need to interact with this comment?", other_params={'labels': priority_labels}),
|
52 |
]),
|
53 |
#Field(type="expander",
|
54 |
# title="Expand and fill-out this section if you see **issues in the original comment**",
|