Remove user_name and model_path from submit.py

#16
by albertvillanova HF staff - opened
Demo leaderboard with an integrated backend org
edited 15 days ago

Remove user_name and model_path from submit.py by using pathlib.

albertvillanova changed pull request title from Update src/submission/submit.py to Remove user_name and model_path from submit.py
Demo leaderboard with an integrated backend org

@clefourrier , as previously discussed, is it OK if I remove the request file writing/deleting locally?

Current code logic for request in submit.py:

  • Write request file locally to the snapshot of the request repo
    • The snapshot of the request repo is pulled from the Hub at each Space reinitialization
  • Upload request file to request repo
  • Delete request file locally
Ready to merge
This branch is ready to get merged automatically.

Sign up or log in to comment