dimasdeffieux commited on
Commit
3f9f26c
·
verified ·
1 Parent(s): 8c9cac9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -42,7 +42,7 @@ def ocr_inference(img, lang):
42
  def make_flashcards(words, language):
43
 
44
  system_prompt = (
45
- f"Given the following {language} words, create a flashcard for each. Use this format: the word, the definition, example sentence, translation of sentence"
46
 
47
  )
48
  user_prompt = f"{system_prompt}\n\nText:\n{text}"
 
42
  def make_flashcards(words, language):
43
 
44
  system_prompt = (
45
+ f"for each {language} word, create a list of the word, its definition, an example sentence using the word, and a translation of example sentence"
46
 
47
  )
48
  user_prompt = f"{system_prompt}\n\nText:\n{text}"