erer commited on
Commit
0bd779b
·
1 Parent(s): 3da2102

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -16,8 +16,8 @@ os.system("cp -a ./bizarre_pose_models/. .")
16
 
17
  os.system("ls")
18
 
19
- def inference(img):
20
- os.system("python3 -m _scripts.pose_estimator "+img+" ./_train/character_pose_estim/runs/feat_concat+data.ckpt")
21
 
22
  return "./_samples/character_pose_estim.png"
23
 
@@ -30,8 +30,8 @@ article = "<p style='text-align: center'><a href='https://arxiv.org/abs/2108.018
30
  examples=[["IkJzlaE.jpeg"]]
31
  gr.Interface(
32
  inference,
33
- gr.inputs.Image(type="filepath", label="Input"),
34
- gr.outputs.Image(type="file", label="Output"),
35
  title=title,
36
  description=description,
37
  article=article,
 
16
 
17
  os.system("ls")
18
 
19
+ def inference(img1):
20
+ os.system("python3 -m _scripts.pose_estimator "+img1+" ./_train/character_pose_estim/runs/feat_concat+data.ckpt")
21
 
22
  return "./_samples/character_pose_estim.png"
23
 
 
30
  examples=[["IkJzlaE.jpeg"]]
31
  gr.Interface(
32
  inference,
33
+ gr.inputs.Image(type="filepath", label="Input1"),
34
+ gr.outputs.Image(type="file", label="Output1"),
35
  title=title,
36
  description=description,
37
  article=article,