Spaces:
Sleeping
Sleeping
Chemsseddine
commited on
Commit
•
9ed5824
1
Parent(s):
d7209e6
Update app.py
Browse files
app.py
CHANGED
@@ -41,7 +41,7 @@ def diff_texts(text1, text2):
|
|
41 |
d = Differ()
|
42 |
return [
|
43 |
(token[2:], token[0] if token[0] != " " else None)
|
44 |
-
for token in d.compare(text1, text2)]
|
45 |
|
46 |
|
47 |
inp=gr.inputs.Textbox(label="Text Originale")
|
|
|
41 |
d = Differ()
|
42 |
return [
|
43 |
(token[2:], token[0] if token[0] != " " else None)
|
44 |
+
for token in d.compare(text1.split(), text2.split())]
|
45 |
|
46 |
|
47 |
inp=gr.inputs.Textbox(label="Text Originale")
|