Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -16,8 +16,8 @@ os.system("cp -a ./bizarre_pose_models/. .")
|
|
16 |
|
17 |
os.system("ls")
|
18 |
|
19 |
-
def inference(
|
20 |
-
os.system("python3 -m _scripts.pose_estimator "+
|
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="
|
34 |
-
gr.outputs.Image(type="file", label="
|
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,
|