MohamedRashad commited on
Commit
d787cff
·
1 Parent(s): d8f6ba2

Update submit_model function to include task parameter in submission data and filename

Browse files
Files changed (1) hide show
  1. utils.py +3 -2
utils.py CHANGED
@@ -105,7 +105,8 @@ def submit_model(model_name, revision, precision, params, license, task):
105
  "revision": revision,
106
  "precision": precision,
107
  "status": status,
108
- "params": params
 
109
  }
110
 
111
  # Serialize the submission to JSON
@@ -117,7 +118,7 @@ def submit_model(model_name, revision, precision, params, license, task):
117
  return "**Please enter the full model name including the organization or username, e.g., 'intfloat/multilingual-e5-large-instruct'**"
118
  org, model_id = org_model
119
  precision_str = precision if precision else 'Missing'
120
- file_path_in_repo = f"pending/{org}/{model_id}_eval_request_{revision}_{precision_str}.json"
121
 
122
  # Upload the submission to the dataset repository
123
  try:
 
105
  "revision": revision,
106
  "precision": precision,
107
  "status": status,
108
+ "params": params,
109
+ "task": task
110
  }
111
 
112
  # Serialize the submission to JSON
 
118
  return "**Please enter the full model name including the organization or username, e.g., 'intfloat/multilingual-e5-large-instruct'**"
119
  org, model_id = org_model
120
  precision_str = precision if precision else 'Missing'
121
+ file_path_in_repo = f"pending/{org}/{model_id}_eval_request_{revision}_{precision_str}_{task}.json"
122
 
123
  # Upload the submission to the dataset repository
124
  try: