ha251 commited on
Commit
2568b4b
·
verified ·
1 Parent(s): c93fc19

Update miniapp_leaderboard.py

Browse files
Files changed (1) hide show
  1. miniapp_leaderboard.py +2 -2
miniapp_leaderboard.py CHANGED
@@ -114,8 +114,8 @@ def submit(model_name, model_family, zip_file, profile: gr.OAuthProfile):
114
  api = _api()
115
  day = _today_utc()
116
 
117
- # if _already_submitted_today(api, day, username):
118
- # return f"Limit: you can only submit once per day. (user={username}, day={day})", refresh()
119
 
120
  now = datetime.datetime.utcnow().isoformat() + "Z"
121
  safe_model = _slug(model_name)
 
114
  api = _api()
115
  day = _today_utc()
116
 
117
+ if _already_submitted_today(api, day, username):
118
+ return f"Limit: you can only submit once per day. (user={username}, day={day})", refresh()
119
 
120
  now = datetime.datetime.utcnow().isoformat() + "Z"
121
  safe_model = _slug(model_name)