marinap commited on
Commit
9fbd81c
·
1 Parent(s): d270432

edit txt2txt

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -97,7 +97,7 @@ with gr.Blocks() as demo_txt:
97
  if_fine_grained = gr.Checkbox(label = "Check for a more fine-grained comparison")
98
  btn = gr.Button("Find similarity")
99
  score = gr.Number(label='Similarity score')
100
- btn.click(find_score_txt, inputs=[img_input, txt_input, if_fine_grained], outputs=[score])
101
  gr.Markdown('If the box for a more fine-grained comparison is checked, the similarity score will be in (0,1), otherwise, it will be in (-1,1)')
102
  gr.Markdown('### Text examples')
103
  gr.Examples(['baby red panda staring into the camera', \
 
97
  if_fine_grained = gr.Checkbox(label = "Check for a more fine-grained comparison")
98
  btn = gr.Button("Find similarity")
99
  score = gr.Number(label='Similarity score')
100
+ btn.click(find_score_txt, inputs=[txt_input1, txt_input2, if_fine_grained], outputs=[score])
101
  gr.Markdown('If the box for a more fine-grained comparison is checked, the similarity score will be in (0,1), otherwise, it will be in (-1,1)')
102
  gr.Markdown('### Text examples')
103
  gr.Examples(['baby red panda staring into the camera', \