Spaces:
Sleeping
Sleeping
Upload app.py
Browse files
app.py
CHANGED
|
@@ -599,7 +599,7 @@ def get_questions_and_micro(
|
|
| 599 |
if q:
|
| 600 |
seen_set.add(q)
|
| 601 |
|
| 602 |
-
|
| 603 |
"category": category_key,
|
| 604 |
"language": lang,
|
| 605 |
"questions": questions,
|
|
@@ -609,13 +609,13 @@ def get_questions_and_micro(
|
|
| 609 |
"safety_notes": safety_notes,
|
| 610 |
}
|
| 611 |
|
| 612 |
-
# If you ever need the payload again, you can use it here;
|
| 613 |
-
# for the UI we only return questions + micro + updated seen.
|
| 614 |
return {
|
| 615 |
-
|
| 616 |
-
|
| 617 |
-
|
| 618 |
-
}
|
| 619 |
|
| 620 |
|
| 621 |
# ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
|
|
|
|
| 599 |
if q:
|
| 600 |
seen_set.add(q)
|
| 601 |
|
| 602 |
+
payload = {
|
| 603 |
"category": category_key,
|
| 604 |
"language": lang,
|
| 605 |
"questions": questions,
|
|
|
|
| 609 |
"safety_notes": safety_notes,
|
| 610 |
}
|
| 611 |
|
| 612 |
+
# If you ever need the payload again, you can use it here;
|
| 613 |
+
# for the UI we only return questions + micro + updated seen.
|
| 614 |
return {
|
| 615 |
+
"questions": questions,
|
| 616 |
+
"micro_actions": micro,
|
| 617 |
+
"seen": list(seen_set),
|
| 618 |
+
}
|
| 619 |
|
| 620 |
|
| 621 |
# ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
|