Spaces:
Sleeping
Sleeping
try everything
Browse files- app.py +4 -4
- mini_agents.py +1 -1
- utils.py +2 -2
app.py
CHANGED
@@ -82,10 +82,10 @@ def run_and_submit_all( profile: gr.OAuthProfile | None, mock_submission: bool =
|
|
82 |
if not task_id or question_text is None:
|
83 |
print(f"Skipping item with missing task_id or question: {item}")
|
84 |
continue
|
85 |
-
if "youtube" in question_text.lower():
|
86 |
-
|
87 |
-
if "chess" not in question_text.lower():
|
88 |
-
|
89 |
try:
|
90 |
if file_path:
|
91 |
question_text = question_text + f"\n\nHere is also the path to the file for the task (file name matches with task ID and is not in plain English): {file_path}"
|
|
|
82 |
if not task_id or question_text is None:
|
83 |
print(f"Skipping item with missing task_id or question: {item}")
|
84 |
continue
|
85 |
+
# if "youtube" in question_text.lower():
|
86 |
+
# continue
|
87 |
+
# if "chess" not in question_text.lower():
|
88 |
+
# continue
|
89 |
try:
|
90 |
if file_path:
|
91 |
question_text = question_text + f"\n\nHere is also the path to the file for the task (file name matches with task ID and is not in plain English): {file_path}"
|
mini_agents.py
CHANGED
@@ -48,7 +48,7 @@ AUTHORIZED_IMPORTS = [
|
|
48 |
# Web
|
49 |
"requests",
|
50 |
# Utilities
|
51 |
-
"logging", "yaml", "datetime", "typing", "markdownify"
|
52 |
]
|
53 |
|
54 |
audio_model = InferenceClientModel(
|
|
|
48 |
# Web
|
49 |
"requests",
|
50 |
# Utilities
|
51 |
+
"logging", "yaml", "datetime", "typing", "markdownify", "chess"
|
52 |
]
|
53 |
|
54 |
audio_model = InferenceClientModel(
|
utils.py
CHANGED
@@ -30,8 +30,8 @@ def find_file_by_task_id(task_id: str, metadata_path: str = "validation/metadata
|
|
30 |
data = json.loads(line.strip())
|
31 |
#print("DATA: ", data)
|
32 |
#print("TASK ID: ", task_id)
|
33 |
-
print("DATA GET TASK ID: ", data.get('task_id'))
|
34 |
-
print("DATA GET FILE NAME: ", data.get('file_name'))
|
35 |
if data.get('task_id') == task_id:
|
36 |
filename = data.get('file_name', '')
|
37 |
return filename if filename else None
|
|
|
30 |
data = json.loads(line.strip())
|
31 |
#print("DATA: ", data)
|
32 |
#print("TASK ID: ", task_id)
|
33 |
+
# print("DATA GET TASK ID: ", data.get('task_id'))
|
34 |
+
# print("DATA GET FILE NAME: ", data.get('file_name'))
|
35 |
if data.get('task_id') == task_id:
|
36 |
filename = data.get('file_name', '')
|
37 |
return filename if filename else None
|