Omnibus commited on
Commit
208c72c
1 Parent(s): 6df96e4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -6
app.py CHANGED
@@ -96,11 +96,6 @@ def enemy_fn(inp):
96
  return out,out_url
97
 
98
  def save_game(background_img,star_img,enemy_img,platform_img,dude_img):
99
- #background_image.save(f"{uid}-background_img.png")
100
- #star_img.save(f"{uid}-star_img.png")
101
- #enemy_img.save(f"{uid}-enemy_img.png")
102
- #platform_img.save(f"{uid}-platform_img.png")
103
- #dude_img.save(f"{uid}-dude_img.png")
104
  user_repo=save_data.split('datasets/',1)[1].split('/raw',1)[0]
105
  out_lod=[]
106
  try:
@@ -146,7 +141,7 @@ def save_game(background_img,star_img,enemy_img,platform_img,dude_img):
146
  except Exception as e:
147
  print (e)
148
  pass
149
- block = {'index': len(lod) + 1,
150
  'timestamp': timestamp,
151
  'background_url': f'https://huggingface.co/datasets/{user_repo}/resolve/main/images/background/{timename}-background_img.png',
152
  'star_url': f'https://huggingface.co/datasets/{user_repo}/resolve/main/images/star/{timename}-star_img.png',
 
96
  return out,out_url
97
 
98
  def save_game(background_img,star_img,enemy_img,platform_img,dude_img):
 
 
 
 
 
99
  user_repo=save_data.split('datasets/',1)[1].split('/raw',1)[0]
100
  out_lod=[]
101
  try:
 
141
  except Exception as e:
142
  print (e)
143
  pass
144
+ block = {'index': len(out_lod) + 1,
145
  'timestamp': timestamp,
146
  'background_url': f'https://huggingface.co/datasets/{user_repo}/resolve/main/images/background/{timename}-background_img.png',
147
  'star_url': f'https://huggingface.co/datasets/{user_repo}/resolve/main/images/star/{timename}-star_img.png',