Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -74,7 +74,7 @@ def sky_fn(inp):
|
|
74 |
out = os.path.abspath(f"{uid}_sky.png")
|
75 |
#out = os.path.abspath(outp)
|
76 |
out_url = f'https://omnibus-game-test.hf.space/file={out}'
|
77 |
-
return
|
78 |
|
79 |
def star_fn(inp):
|
80 |
rand = random.randint(1,200)
|
@@ -88,7 +88,7 @@ def star_fn(inp):
|
|
88 |
outrs.save(f"{uid}_star.png")
|
89 |
out_file = os.path.abspath(f"{uid}_star.png")
|
90 |
out_url = f'https://omnibus-game-test.hf.space/file={out_file}'
|
91 |
-
return
|
92 |
|
93 |
def enemy_fn(inp):
|
94 |
rand = random.randint(1,200)
|
@@ -102,7 +102,7 @@ def enemy_fn(inp):
|
|
102 |
outrs.save(f"{uid}_enemy.png")
|
103 |
out_file = os.path.abspath(f"{uid}_enemy.png")
|
104 |
out_url = f'https://omnibus-game-test.hf.space/file={out_file}'
|
105 |
-
return
|
106 |
|
107 |
def save_game(name,score,background_img,star_img,enemy_img,platform_img,dude_img):
|
108 |
user_repo=save_data.split('datasets/',1)[1].split('/raw',1)[0]
|
|
|
74 |
out = os.path.abspath(f"{uid}_sky.png")
|
75 |
#out = os.path.abspath(outp)
|
76 |
out_url = f'https://omnibus-game-test.hf.space/file={out}'
|
77 |
+
return outp,out_url
|
78 |
|
79 |
def star_fn(inp):
|
80 |
rand = random.randint(1,200)
|
|
|
88 |
outrs.save(f"{uid}_star.png")
|
89 |
out_file = os.path.abspath(f"{uid}_star.png")
|
90 |
out_url = f'https://omnibus-game-test.hf.space/file={out_file}'
|
91 |
+
return outrs,out_url
|
92 |
|
93 |
def enemy_fn(inp):
|
94 |
rand = random.randint(1,200)
|
|
|
102 |
outrs.save(f"{uid}_enemy.png")
|
103 |
out_file = os.path.abspath(f"{uid}_enemy.png")
|
104 |
out_url = f'https://omnibus-game-test.hf.space/file={out_file}'
|
105 |
+
return outrs,out_url
|
106 |
|
107 |
def save_game(name,score,background_img,star_img,enemy_img,platform_img,dude_img):
|
108 |
user_repo=save_data.split('datasets/',1)[1].split('/raw',1)[0]
|