Spaces:
Running
Running
update filters
Browse files- data_utils.py +2 -0
data_utils.py
CHANGED
@@ -90,6 +90,8 @@ def get_random_item(model_name="random", size_H="random", size_W="random"):
|
|
90 |
prediction_json = extract_last_complete_json(prediction_str)
|
91 |
if prediction_json is None or "solution" not in prediction_json:
|
92 |
continue
|
|
|
|
|
93 |
prediction_reasoning = prediction_json.get("reasoning", "")
|
94 |
prediction_table = prediction_json["solution"]
|
95 |
if prediction_table is not None:
|
|
|
90 |
prediction_json = extract_last_complete_json(prediction_str)
|
91 |
if prediction_json is None or "solution" not in prediction_json:
|
92 |
continue
|
93 |
+
if "child" in item["puzzle"].lower() or "mother" in item["puzzle"].lower():
|
94 |
+
continue
|
95 |
prediction_reasoning = prediction_json.get("reasoning", "")
|
96 |
prediction_table = prediction_json["solution"]
|
97 |
if prediction_table is not None:
|