Spaces:
Running
Running
Update app.py
Browse files
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
|