alozowski HF staff commited on
Commit
7017c9f
·
1 Parent(s): 2a097f5

Uncomment lines and remove hardcode

Browse files
backend/app/services/models.py CHANGED
@@ -524,15 +524,15 @@ class ModelService(HuggingFaceService):
524
  temp_file.flush()
525
  temp_path = temp_file.name
526
 
527
- # # Upload file directly
528
- # self.hf_api.upload_file(
529
- # path_or_fileobj=temp_path,
530
- # path_in_repo=relative_path,
531
- # repo_id=f"{HF_ORGANIZATION}/requests",
532
- # repo_type="dataset",
533
- # commit_message=f"Add {model_data['model_id']} to eval queue",
534
- # token=self.token
535
- # )
536
 
537
  # Clean up temp file
538
  os.unlink(temp_path)
 
524
  temp_file.flush()
525
  temp_path = temp_file.name
526
 
527
+ # Upload file directly
528
+ self.hf_api.upload_file(
529
+ path_or_fileobj=temp_path,
530
+ path_in_repo=relative_path,
531
+ repo_id=f"{HF_ORGANIZATION}/requests",
532
+ repo_type="dataset",
533
+ commit_message=f"Add {model_data['model_id']} to eval queue",
534
+ token=self.token
535
+ )
536
 
537
  # Clean up temp file
538
  os.unlink(temp_path)
backend/utils/fix_wrong_model_size.py CHANGED
@@ -59,7 +59,7 @@ def write_json(repo_path, file, content):
59
 
60
 
61
  def main():
62
- requests_path = "/Users/lozowski/Developer/requests"
63
  start_date = "2024-12-09"
64
  end_date = "2025-01-07"
65
 
 
59
 
60
 
61
  def main():
62
+ requests_path = "/requests"
63
  start_date = "2024-12-09"
64
  end_date = "2025-01-07"
65