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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -55,7 +55,7 @@ def make_flashcards(words, language):
55
  # Parse response: take last line, split by commas
56
  last_line = output_text.strip().split("\n")[-1]
57
  card = [w.strip() for w in last_line.split(":") if w.strip()]
58
- cards.add(card)
59
  return cards
60
 
61
  words=text_inference(text, "korean")
 
55
  # Parse response: take last line, split by commas
56
  last_line = output_text.strip().split("\n")[-1]
57
  card = [w.strip() for w in last_line.split(":") if w.strip()]
58
+ cards.append(card)
59
  return cards
60
 
61
  words=text_inference(text, "korean")