Shiyu Zhao commited on
Commit
6542cc6
·
1 Parent(s): 56b0dde

Update space

Browse files
Files changed (1) hide show
  1. app.py +13 -0
app.py CHANGED
@@ -394,6 +394,19 @@ def send_error_notification(meta_data, error_info):
394
  except Exception as e:
395
  print(f"Failed to send error notification: {e}")
396
 
 
 
 
 
 
 
 
 
 
 
 
 
 
397
  # Function to send a submission confirmation with evaluation results and metadata, CCing the sender
398
  def send_submission_confirmation(meta_data, eval_results):
399
  """
 
394
  except Exception as e:
395
  print(f"Failed to send error notification: {e}")
396
 
397
+ def format_evaluation_results(results):
398
+ """
399
+ Formats the evaluation results dictionary into a readable string.
400
+
401
+ Args:
402
+ results (dict): Dictionary containing evaluation metrics and their values.
403
+
404
+ Returns:
405
+ str: Formatted string of evaluation results.
406
+ """
407
+ result_lines = [f"{metric}: {value}" for metric, value in results.items()]
408
+ return "\n".join(result_lines)
409
+
410
  # Function to send a submission confirmation with evaluation results and metadata, CCing the sender
411
  def send_submission_confirmation(meta_data, eval_results):
412
  """