neverix commited on
Commit
b570462
·
1 Parent(s): 737355b

Sorted video, will add video input soon :tm:

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -46,7 +46,7 @@ if st.button("RUN!"):
46
  with open("character_sheet/{}.png".format(i), "wb") as f:
47
  f.write(upload_img[i].read())
48
  os.makedirs("poses", exist_ok=True)
49
- for i, e in enumerate(upload_img2):
50
  with open(f"poses/{i}.png", "wb") as f:
51
  f.write(e.read())
52
  st.info("努力推理中...")
 
46
  with open("character_sheet/{}.png".format(i), "wb") as f:
47
  f.write(upload_img[i].read())
48
  os.makedirs("poses", exist_ok=True)
49
+ for i, e in enumerate(sorted(upload_img2, key=lambda x: x.name)):
50
  with open(f"poses/{i}.png", "wb") as f:
51
  f.write(e.read())
52
  st.info("努力推理中...")