Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -56,8 +56,12 @@ def make_flashcards(words, language):
|
|
56 |
output = [w.strip() for w in last_line.split(":") if w.strip()]
|
57 |
return output
|
58 |
|
59 |
-
|
60 |
-
|
61 |
-
|
62 |
|
63 |
-
print("OCR OUTPUT: "ocr_inference(img, "korean"))
|
|
|
|
|
|
|
|
|
|
56 |
output = [w.strip() for w in last_line.split(":") if w.strip()]
|
57 |
return output
|
58 |
|
59 |
+
words=text_inference(text, "korean")
|
60 |
+
print("OUTPUT TOUT OUETOI EIFJ IEFJ",words)
|
61 |
+
print("flashcard output:",make_flashcards(words, "korean"))
|
62 |
|
63 |
+
print("OCR OUTPUT: ", ocr_inference(img, "korean"))
|
64 |
+
words=text_inference(text, "korean")
|
65 |
+
print("TEXT INPUT: ", text)
|
66 |
+
print("WORD PARSING: ",words)
|
67 |
+
print("flashcard output:",make_flashcards(words, "korean"))
|