Update app.py
Browse files
app.py
CHANGED
@@ -30,7 +30,7 @@ def predict(image1, image2, text):
|
|
30 |
|
31 |
images = [gr.inputs.Image(type="pil"), gr.inputs.Image(type="pil")]
|
32 |
text = gr.inputs.Textbox(lines=2, label="Sentence")
|
33 |
-
label = gr.outputs.Label(num_top_classes=2)
|
34 |
|
35 |
example_sentence_1 = "The left image contains twice the number of dogs as the right image, and at least two dogs in total are standing."
|
36 |
example_sentence_2 = "One image shows exactly two brown acorns in back-to-back caps on green foliage."
|
|
|
30 |
|
31 |
images = [gr.inputs.Image(type="pil"), gr.inputs.Image(type="pil")]
|
32 |
text = gr.inputs.Textbox(lines=2, label="Sentence")
|
33 |
+
label = gr.outputs.Label(num_top_classes=2, type="confidences")
|
34 |
|
35 |
example_sentence_1 = "The left image contains twice the number of dogs as the right image, and at least two dogs in total are standing."
|
36 |
example_sentence_2 = "One image shows exactly two brown acorns in back-to-back caps on green foliage."
|