Spaces:
Sleeping
Sleeping
Update main.py
Browse files
main.py
CHANGED
|
@@ -56,6 +56,7 @@ def load_questions():
|
|
| 56 |
print(f"Skipping Task ID: {question.get('task_id', 'N/A')} - Could not convert tool/step count to integer.")
|
| 57 |
print("------------------------------------------------------------------")
|
| 58 |
filtered_dataset=tempo_filtered
|
|
|
|
| 59 |
for item in filtered_dataset:
|
| 60 |
task_id = item.get('task_id')
|
| 61 |
question_text = item.get('Question')
|
|
@@ -71,6 +72,7 @@ def load_questions():
|
|
| 71 |
logger.warning(f"Skipping item due to missing fields: {item}")
|
| 72 |
|
| 73 |
logger.info(f"Loaded {len(questions_for_api)} questions for the API.")
|
|
|
|
| 74 |
if not questions_for_api:
|
| 75 |
logger.error("No valid questions loaded. API will not function correctly.")
|
| 76 |
# You might want to exit or raise an error here depending on requirements
|
|
|
|
| 56 |
print(f"Skipping Task ID: {question.get('task_id', 'N/A')} - Could not convert tool/step count to integer.")
|
| 57 |
print("------------------------------------------------------------------")
|
| 58 |
filtered_dataset=tempo_filtered
|
| 59 |
+
print(filtered_dataset)
|
| 60 |
for item in filtered_dataset:
|
| 61 |
task_id = item.get('task_id')
|
| 62 |
question_text = item.get('Question')
|
|
|
|
| 72 |
logger.warning(f"Skipping item due to missing fields: {item}")
|
| 73 |
|
| 74 |
logger.info(f"Loaded {len(questions_for_api)} questions for the API.")
|
| 75 |
+
print(questions_for_api)
|
| 76 |
if not questions_for_api:
|
| 77 |
logger.error("No valid questions loaded. API will not function correctly.")
|
| 78 |
# You might want to exit or raise an error here depending on requirements
|