Ahsen Khaliq commited on
Commit
072d8dc
1 Parent(s): 97a80d3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -2,7 +2,10 @@ import gradio as gr
2
  import os
3
 
4
  def inference(image):
5
- os.system("python -m openpifpaf.predict "+image.name+" --checkpoint=shufflenetv2k30-wholebody --line-width=2 -o out.jpg")
 
 
 
6
  return "out.jpg"
7
 
8
 
2
  import os
3
 
4
  def inference(image):
5
+ os.system("""python -m openpifpaf.predict """+ image.name+""" \
6
+ --checkpoint=shufflenetv2k16-apollo-24 -o out.jpg \
7
+ --instance-threshold 0.05 --seed-threshold 0.05 \
8
+ --line-width 4 --font-size 0""")
9
  return "out.jpg"
10
 
11