Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -353,8 +353,14 @@ def analyze_composite(msg1, date1, msg2, date2, msg3, date3, *answers_and_none):
|
|
353 |
timeline_image = generate_abuse_score_chart(dates_used, abuse_scores, pattern_labels)
|
354 |
return out, timeline_image
|
355 |
|
356 |
-
message_date_pairs = [
|
357 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
358 |
quiz_boxes = [gr.Checkbox(label=q) for q, _ in ESCALATION_QUESTIONS]
|
359 |
none_box = gr.Checkbox(label="None of the above")
|
360 |
|
|
|
353 |
timeline_image = generate_abuse_score_chart(dates_used, abuse_scores, pattern_labels)
|
354 |
return out, timeline_image
|
355 |
|
356 |
+
message_date_pairs = [
|
357 |
+
(
|
358 |
+
gr.Textbox(label=f"Message {i+1}"),
|
359 |
+
gr.Date(label=f"Date {i+1} (optional)")
|
360 |
+
)
|
361 |
+
for i in range(3)
|
362 |
+
]
|
363 |
+
textbox_inputs = [item for pair in message_date_pairs for item in pair]
|
364 |
quiz_boxes = [gr.Checkbox(label=q) for q, _ in ESCALATION_QUESTIONS]
|
365 |
none_box = gr.Checkbox(label="None of the above")
|
366 |
|