Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -15,7 +15,7 @@ def postprocess(output):
|
|
15 |
def infer(image, candidate_labels):
|
16 |
candidate_labels = [label.lstrip(" ") for label in candidate_labels.split(",")]
|
17 |
clip_out = clip_detector(image, candidate_labels=candidate_labels)
|
18 |
-
return postprocess(clip_out)
|
19 |
|
20 |
|
21 |
with gr.Blocks() as demo:
|
|
|
15 |
def infer(image, candidate_labels):
|
16 |
candidate_labels = [label.lstrip(" ") for label in candidate_labels.split(",")]
|
17 |
clip_out = clip_detector(image, candidate_labels=candidate_labels)
|
18 |
+
return postprocess(clip_out)
|
19 |
|
20 |
|
21 |
with gr.Blocks() as demo:
|