Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -8,11 +8,11 @@ def gradio_interface(text1, image1, text2, image2, threshold=0.75):
|
|
| 8 |
return out['score'], label['label']
|
| 9 |
|
| 10 |
inputs = [
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
]
|
| 17 |
|
| 18 |
outputs = [
|
|
|
|
| 8 |
return out['score'], label['label']
|
| 9 |
|
| 10 |
inputs = [
|
| 11 |
+
gr.components.Textbox(lines=5, label="Description 1"),
|
| 12 |
+
gr.components.Image(label="Image 1"),
|
| 13 |
+
gr.components.Textbox(lines=5, label="Description 2"),
|
| 14 |
+
gr.components.Image(label="Image 2"),
|
| 15 |
+
gr.components.Slider(minimum=0, maximum=1, default=0.75, step=0.01, label="Similarity Threshold")
|
| 16 |
]
|
| 17 |
|
| 18 |
outputs = [
|