kz-transformers commited on
Commit
97bb51d
·
verified ·
1 Parent(s): 5f01783

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -6
app.py CHANGED
@@ -25,12 +25,12 @@ def submit_file(v, file_path, mn, profile: gr.OAuthProfile | None):
25
  if profile is None:
26
  return "Hub Login Required"
27
  print('PROFILE: ', profile.__dict__)
28
-
29
  new_file = v['results']
30
- if profile.username == 'kz-transformers':
31
- new_file['model'] = mn
32
- else:
33
- new_file['model'] = profile.username + "/" + mn
34
 
35
  columns = [
36
  'mmlu_translated_kk', 'kk_constitution_mc', 'kk_dastur_mc', 'kazakh_and_literature_unt_mc', 'kk_geography_unt_mc',
@@ -49,7 +49,7 @@ def submit_file(v, file_path, mn, profile: gr.OAuthProfile | None):
49
  buf.write(json.dumps(new_file).encode('utf-8'))
50
  API.upload_file(
51
  path_or_fileobj=buf,
52
- path_in_repo="model_data/external/" + profile.username+mn + ".json",
53
  repo_id="kz-transformers/s-openbench-eval",
54
  repo_type="dataset",
55
  )
 
25
  if profile is None:
26
  return "Hub Login Required"
27
  print('PROFILE: ', profile.__dict__)
28
+ print('MN:', mn)
29
  new_file = v['results']
30
+ # if profile.username == 'kz-transformers':
31
+ # new_file['model'] = mn
32
+ # else:
33
+ new_file['model'] = profile.username + "/" + mn
34
 
35
  columns = [
36
  'mmlu_translated_kk', 'kk_constitution_mc', 'kk_dastur_mc', 'kazakh_and_literature_unt_mc', 'kk_geography_unt_mc',
 
49
  buf.write(json.dumps(new_file).encode('utf-8'))
50
  API.upload_file(
51
  path_or_fileobj=buf,
52
+ path_in_repo="model_data/external/" + profile.username + '/' + mn + ".json",
53
  repo_id="kz-transformers/s-openbench-eval",
54
  repo_type="dataset",
55
  )