silvesterjk commited on
Commit
4b2cce8
1 Parent(s): 48c631e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -3
app.py CHANGED
@@ -31,13 +31,11 @@ with gr.Blocks() as demo:
31
  textbox2 = gr.Textbox(label="Enter the text to compare")
32
  label = gr.Label()
33
 
34
- txt1 = textbox1.split()
35
- txt2 = textbox2.split()
36
 
37
  def text_sim(par1, par2):
38
  sim = SequenceMatcher(None, par1, par2).ratio() * 100
39
  return sim
40
 
41
- sim_button.click(text_sim, inputs=[txt1, txt2], outputs=label)
42
 
43
  demo.launch()
 
31
  textbox2 = gr.Textbox(label="Enter the text to compare")
32
  label = gr.Label()
33
 
 
 
34
 
35
  def text_sim(par1, par2):
36
  sim = SequenceMatcher(None, par1, par2).ratio() * 100
37
  return sim
38
 
39
+ sim_button.click(text_sim, inputs=[textbox1, textbox2], outputs=label)
40
 
41
  demo.launch()