neverix commited on
Commit
83190e8
·
1 Parent(s): 09b5740

Character sheet creation

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -38,6 +38,7 @@ upload_img = (st.file_uploader("输入character sheet", "png", accept_multiple_f
38
 
39
  if st.button('RUN!'):
40
  if upload_img is not None:
 
41
  for i in range(len(upload_img)):
42
  with open('character_sheet/{}.png'.format(i), 'wb') as f:
43
  f.write(upload_img[i].read())
 
38
 
39
  if st.button('RUN!'):
40
  if upload_img is not None:
41
+ os.makedirs("character_sheet", exist_ok=True)
42
  for i in range(len(upload_img)):
43
  with open('character_sheet/{}.png'.format(i), 'wb') as f:
44
  f.write(upload_img[i].read())