Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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"))
|