JiheonJeong commited on
Commit
21c05be
·
1 Parent(s): 6e0efb9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -170,7 +170,7 @@ def submit(image):
170
  balloon = Image.open(os.path.join(os.path.dirname(__file__), 'data/balloon.png')).resize((64, 64))
171
  new_image = Image.fromarray(image).convert('RGBA')
172
  for k in range(TOTAL_K):
173
- new_image.paste(balloon, [CURRENT_POSITION[k][0], CURRENT_POSITION[k][1] + 64], balloon)
174
  return np.array(new_image)
175
 
176
  theme = gr.themes.Default(primary_hue="green")
 
170
  balloon = Image.open(os.path.join(os.path.dirname(__file__), 'data/balloon.png')).resize((64, 64))
171
  new_image = Image.fromarray(image).convert('RGBA')
172
  for k in range(TOTAL_K):
173
+ new_image.paste(balloon, [CURRENT_POSITION[k][0], CURRENT_POSITION[k][1] - 64], balloon)
174
  return np.array(new_image)
175
 
176
  theme = gr.themes.Default(primary_hue="green")