neverix commited on
Commit
87ea4ec
·
1 Parent(s): d2ce21a

Maybe fix order issue?

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