Spaces:
Running
Running
Commit
·
f98f521
1
Parent(s):
eb2a754
added try catch loop to analze agent steps call
Browse files- utils/processing.py +5 -1
utils/processing.py
CHANGED
@@ -120,7 +120,11 @@ async def process_upload(input_path, output_path):
|
|
120 |
assert 'raw_logging_results' in data, "raw_logging_results key not found in the file"
|
121 |
openai_client = AsyncOpenAIClient(model="gpt-4o-mini")
|
122 |
|
123 |
-
|
|
|
|
|
|
|
|
|
124 |
|
125 |
# Save the processed data
|
126 |
data['raw_logging_results'] = processed_calls
|
|
|
120 |
assert 'raw_logging_results' in data, "raw_logging_results key not found in the file"
|
121 |
openai_client = AsyncOpenAIClient(model="gpt-4o-mini")
|
122 |
|
123 |
+
try:
|
124 |
+
processed_calls = await analyze_agent_steps(data['raw_logging_results'], openai_client)
|
125 |
+
except Exception as e:
|
126 |
+
print(f"Error in processing: {str(e)}")
|
127 |
+
return
|
128 |
|
129 |
# Save the processed data
|
130 |
data['raw_logging_results'] = processed_calls
|