Spaces:
Runtime error
Runtime error
silvesterjk
commited on
Commit
•
48c631e
1
Parent(s):
33d33c9
Update app.py
Browse files
app.py
CHANGED
@@ -30,11 +30,9 @@ with gr.Blocks() as demo:
|
|
30 |
transcribe_button.click(transcribe, inputs=[audio], outputs=[textbox1])
|
31 |
textbox2 = gr.Textbox(label="Enter the text to compare")
|
32 |
label = gr.Label()
|
33 |
-
|
34 |
-
|
35 |
-
|
36 |
-
ba = re.sub(r"[^a-zA-Z0-9 ]", " ", textbox2).lower()
|
37 |
-
txt2 = ba.split()
|
38 |
|
39 |
def text_sim(par1, par2):
|
40 |
sim = SequenceMatcher(None, par1, par2).ratio() * 100
|
|
|
30 |
transcribe_button.click(transcribe, inputs=[audio], outputs=[textbox1])
|
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
|