Spaces:
Running
Running
kz-transformers
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -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 |
)
|
|
|
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.replace('/', '__') + ".json",
|
53 |
repo_id="kz-transformers/s-openbench-eval",
|
54 |
repo_type="dataset",
|
55 |
)
|