Omnibus commited on
Commit
9298008
1 Parent(s): 811d7b4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -129,7 +129,7 @@ def save_game(name,score,background_im,star_im,enemy_im):
129
  print(timestamp)
130
  try:
131
  api.upload_file(
132
- path_or_fileobj=Image.open(f"{uid}_sky.png"),
133
  path_in_repo=f"{save_data.split('main/',1)[1]}/images/background/{game}-background_img.png",
134
  repo_id=save_data.split('datasets/',1)[1].split('/raw',1)[0],
135
  token=token_self,
@@ -140,7 +140,7 @@ def save_game(name,score,background_im,star_im,enemy_im):
140
  pass
141
  try:
142
  api.upload_file(
143
- path_or_fileobj=star_im,
144
  path_in_repo=f"{save_data.split('main/',1)[1]}/images/star/{game}-star_img.png",
145
  repo_id=save_data.split('datasets/',1)[1].split('/raw',1)[0],
146
  token=token_self,
 
129
  print(timestamp)
130
  try:
131
  api.upload_file(
132
+ path_or_fileobj=Image.open(background_im),
133
  path_in_repo=f"{save_data.split('main/',1)[1]}/images/background/{game}-background_img.png",
134
  repo_id=save_data.split('datasets/',1)[1].split('/raw',1)[0],
135
  token=token_self,
 
140
  pass
141
  try:
142
  api.upload_file(
143
+ path_or_fileobj=Image.open(star_im),
144
  path_in_repo=f"{save_data.split('main/',1)[1]}/images/star/{game}-star_img.png",
145
  repo_id=save_data.split('datasets/',1)[1].split('/raw',1)[0],
146
  token=token_self,