Update app.py
Browse files
app.py
CHANGED
@@ -16,7 +16,7 @@ i3 = gr.inputs.Number(default=0.96, label="Threshold percentage score")
|
|
16 |
o1 = gr.outputs.Image(type="pil", label="Cropped part")
|
17 |
o2 = gr.outputs.Textbox(label="Similarity score")
|
18 |
|
19 |
-
def extract_image(image, text, num=1
|
20 |
|
21 |
inputs = feature_extractor(images=image, return_tensors="pt")
|
22 |
outputs = dmodel(**inputs)
|
|
|
16 |
o1 = gr.outputs.Image(type="pil", label="Cropped part")
|
17 |
o2 = gr.outputs.Textbox(label="Similarity score")
|
18 |
|
19 |
+
def extract_image(image, text, prob, num=1):
|
20 |
|
21 |
inputs = feature_extractor(images=image, return_tensors="pt")
|
22 |
outputs = dmodel(**inputs)
|