Spaces:
Runtime error
Runtime error
edit txt2txt
Browse files
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=[
|
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', \
|