dimasdeffieux commited on
Commit
a378385
·
verified ·
1 Parent(s): c95aef7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -39,7 +39,7 @@ def ocr_inference(img, lang):
39
  scores = [line[1][1] for line in result]
40
  return txts
41
 
42
- def make_flashcards(words):
43
  cards=[]
44
  for word in words:
45
  system_prompt = (
@@ -60,4 +60,4 @@ def make_flashcards(words):
60
 
61
  words=text_inference(text, "korean")
62
  print("OUTPUT TOUT OUETOI EIFJ IEFJ",words)
63
- print("flashcard output:",make_flashcards(words))
 
39
  scores = [line[1][1] for line in result]
40
  return txts
41
 
42
+ def make_flashcards(words, language):
43
  cards=[]
44
  for word in words:
45
  system_prompt = (
 
60
 
61
  words=text_inference(text, "korean")
62
  print("OUTPUT TOUT OUETOI EIFJ IEFJ",words)
63
+ print("flashcard output:",make_flashcards(words, "korean"))