dimasdeffieux commited on
Commit
3f4a6b2
·
verified ·
1 Parent(s): 3da5435

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -4
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
- # 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"))
 
 
 
 
 
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"))