hank1229 commited on
Commit
fe40b88
·
verified ·
1 Parent(s): 39bc1a9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -0
app.py CHANGED
@@ -1,6 +1,11 @@
1
  import gradio as gr
2
  from utils.detector import detect_clothing
3
  from utils.advisor import get_advice
 
 
 
 
 
4
 
5
  def run_style_savvy(image, bg_remove, body_type, face_shape, occasion):
6
  # 1) Detect garments
 
1
  import gradio as gr
2
  from utils.detector import detect_clothing
3
  from utils.advisor import get_advice
4
+ import json
5
+
6
+ if isinstance(items, str):
7
+ items = json.loads(items)
8
+
9
 
10
  def run_style_savvy(image, bg_remove, body_type, face_shape, occasion):
11
  # 1) Detect garments