theArijitDas commited on
Commit
04054b7
·
verified ·
1 Parent(s): 21ca337

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -5
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
- grcomponents.Textbox(lines=5, label="Description 1"),
12
- grcomponents.Image(label="Image 1"),
13
- grcomponents.Textbox(lines=5, label="Description 2"),
14
- grcomponents.Image(label="Image 2"),
15
- grcomponents.Slider(minimum=0, maximum=1, default=0.75, step=0.01, label="Similarity Threshold")
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 = [