Commit
·
aabf65f
1
Parent(s):
5c88b2d
Update app.py
Browse files
app.py
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
import gradio
|
2 |
import Levenshtein
|
3 |
|
4 |
-
def calculate_distance(
|
5 |
# split words and characters
|
6 |
ocr_words = ocr_text.split()
|
7 |
org_words = orginal_text.split()
|
|
|
1 |
import gradio
|
2 |
import Levenshtein
|
3 |
|
4 |
+
def calculate_distance(ocr_text, orginal_text):
|
5 |
# split words and characters
|
6 |
ocr_words = ocr_text.split()
|
7 |
org_words = orginal_text.split()
|