Omnibus commited on
Commit
df5c2e7
1 Parent(s): f7cbfc0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -70,7 +70,7 @@ def sky_fn(inp):
70
  out = os.path.abspath(f"{uid}_sky.png")
71
  #out = os.path.abspath(outp)
72
  out_url = f'https://omnibus-game-test.hf.space/file={out}'
73
- return outp,out_url,rand
74
 
75
  def star_fn(inp):
76
  uid=uuid.uuid4()
@@ -85,7 +85,7 @@ def star_fn(inp):
85
  outrs.save(f"{uid}_star.png")
86
  out_file = os.path.abspath(f"{uid}_star.png")
87
  out_url = f'https://omnibus-game-test.hf.space/file={out_file}'
88
- return out,out_url,rand
89
 
90
  def enemy_fn(inp):
91
  uid=uuid.uuid4()
@@ -100,7 +100,7 @@ def enemy_fn(inp):
100
  outrs.save(f"{uid}_enemy.png")
101
  out_file = os.path.abspath(f"{uid}_enemy.png")
102
  out_url = f'https://omnibus-game-test.hf.space/file={out_file}'
103
- return out,out_url,rand
104
 
105
  def save_game(name,score,sky_im,star_im,enemy_im,sky_p,star_p,enemy_p,background_s,star_s,enemy_s):
106
  sky_im=sky_im.split("app/",1)[1]
 
70
  out = os.path.abspath(f"{uid}_sky.png")
71
  #out = os.path.abspath(outp)
72
  out_url = f'https://omnibus-game-test.hf.space/file={out}'
73
+ return outp,out_url,inp,rand
74
 
75
  def star_fn(inp):
76
  uid=uuid.uuid4()
 
85
  outrs.save(f"{uid}_star.png")
86
  out_file = os.path.abspath(f"{uid}_star.png")
87
  out_url = f'https://omnibus-game-test.hf.space/file={out_file}'
88
+ return out,out_url,inp,rand
89
 
90
  def enemy_fn(inp):
91
  uid=uuid.uuid4()
 
100
  outrs.save(f"{uid}_enemy.png")
101
  out_file = os.path.abspath(f"{uid}_enemy.png")
102
  out_url = f'https://omnibus-game-test.hf.space/file={out_file}'
103
+ return out,out_url,inp,rand
104
 
105
  def save_game(name,score,sky_im,star_im,enemy_im,sky_p,star_p,enemy_p,background_s,star_s,enemy_s):
106
  sky_im=sky_im.split("app/",1)[1]