Update app.py
Browse files
app.py
CHANGED
@@ -110,8 +110,8 @@ def save_game(background_img,star_img,enemy_img,platform_img,dude_img):
|
|
110 |
try:
|
111 |
api.upload_file(
|
112 |
path_or_fileobj=background_img,
|
113 |
-
path_in_repo=f"{
|
114 |
-
repo_id=
|
115 |
token=token_self,
|
116 |
repo_type="dataset",
|
117 |
)
|
|
|
110 |
try:
|
111 |
api.upload_file(
|
112 |
path_or_fileobj=background_img,
|
113 |
+
path_in_repo=f"{save_data.split('main/',1)[1]}/images/background/{uid}-background_img.png",
|
114 |
+
repo_id=save_data.split('datasets/',1)[1].split('/raw',1)[0],
|
115 |
token=token_self,
|
116 |
repo_type="dataset",
|
117 |
)
|