Spaces:
Running
Running
kz-transformers
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -27,10 +27,10 @@ def submit_file(v, file_path, mn, profile: gr.OAuthProfile | None):
|
|
27 |
print('PROFILE: ', profile.__dict__)
|
28 |
print('MN:', mn)
|
29 |
new_file = v['results']
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
|
35 |
columns = [
|
36 |
'mmlu_translated_kk', 'kk_constitution_mc', 'kk_dastur_mc', 'kazakh_and_literature_unt_mc', 'kk_geography_unt_mc',
|
|
|
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',
|